ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PyroCMS v0.9.9

December 21, 2009 12:55pm

Subscribe [27]
  • #121 / Apr 12, 2010 10:48am

    coddim

    3 posts

    Hi Phil,

    The navigation is not a problem, I can do that. I was saying about the all structure (language specific content for each article/page).

    I will give it a try and if the project will be working I will contact you, maybe it can be useful for the project.

    Regards,
    Dimitry

  • #122 / Apr 12, 2010 10:49am

    Phil Sturgeon

    2889 posts

    If you can track your work with Git I would be more than happy to include any multi-lingual improvements you make to the system.

  • #123 / Apr 15, 2010 6:14am

    Hi Phil,
    Thanks for a nice PyroCMS. No I have a few questions.

    1. Tinymc is not working at admin panel third part module news.
    2. How can I display login box in the frontpage? Or how we can display widgets from different modules on the frontpage?

    PS: Now I’m translating to turkish and soon maybe I’ll send you language files.

    Waiting for reply

  • #124 / Apr 15, 2010 10:16am

    Phil Sturgeon

    2889 posts

    How can I display login box in the frontpage? Or how we can display widgets from different modules on the frontpage?

    Widgets from different modules? Widgets are currently not modular, so you only have RSS, Twitter, HTML and Navigation.

    I recently made a Login widget for my other CMS project, so I’ll copy that across tonight. It is essentially just a HTML form posting to users/login anyway.

  • #125 / Apr 15, 2010 10:52am

    Actually I want to try to make widget of login and user details, in details are the links to change the profile info, adding news. Should I use search widget for my module differently or should I use it inside view in my module?

    Now I’m making Hotels reservation and Jobs/Recruit modules for two different companies.

    How we can use Views of two different modules in one place?

    Thanks a lot,

    Waiting for reply.

  • #126 / Apr 15, 2010 12:19pm

    Phil Sturgeon

    2889 posts

    Actually I want to try to make widget of login and user details, in details are the links to change the profile info, adding news. Should I use search widget for my module differently or should I use it inside view in my module?

    Now I’m making Hotels reservation and Jobs/Recruit modules for two different companies.

    How we can use Views of two different modules in one place?

    Thanks a lot,

    Waiting for reply.

    A widget should just be an intelligent display fragment. Think of it as a view file with some accompanied PHP, so if you want to handle form submissions and stuff like that you should probably post to a module.

    $this->load->view('modulename/viewfile');
  • #127 / Apr 15, 2010 1:02pm

    Thanks for nice explanation.
    Actually I want to make login in the left side of the page. When the clients logins, the list of personal info and links should be on the left side during the site surfing. Let’s say, I login to my job application site. After I login, on the left side I need my cv add, cv list, job application list. Or should I control it in my job/recruit module?

    Thanks for fast reply.

  • #128 / Apr 16, 2010 5:50am

    I have interesting error, can you help me.

    My table “section”
    When I use this code

    $sections = $this->section_m->get($id);

    I have this error

    A Database Error Occurred
    
    Error Number: 1146
    
    Table 'ik.sections' doesn't exist
    
    SELECT * FROM (sections) WHERE `id` = '1'

    Inside my model all table names are “section” but why “s” is added? I see at my error.

  • #129 / Apr 16, 2010 5:51am

    Phil Sturgeon

    2889 posts

    We use MY_Model for table name conventions and shared get/insert/update methods. If you do not want any of this then extend your models from Model instead.

    class Section extends Model
  • #130 / Apr 16, 2010 6:22am

    I actually use this module

    class Section_m extends Model

    but when I write this

    $sections = $this->section_m->get($id);

    I get the error I indicated above. but when we use get function, it is called from MY_Model but why it adds “s” to the end of my table “section”. That is the problem.

  • #131 / Apr 16, 2010 6:26am

    I resolved this problem by changing my table to “sections”

  • #132 / Apr 16, 2010 6:38am

    Phil Sturgeon

    2889 posts

    Naming Conventions

    This class will try to guess the name of the table to use, by guessing the plural of the class name. If the table name isn’t the plural and you need to set it to something else, just declare the $table instance variable and set it to the table name. Some of the CRUD functions also assume that your primary key ID column is called ‘id’. You can overwrite this functionality by setting the _$primary_key_ instance variable.

  • #133 / Apr 16, 2010 12:39pm

    Now I such menus on the module

    Universities (admin) controller
    Sections (admin_section Controller Name and Controller Class) (section_m Model name)
    Elements (admin_element Controller Name and Controller Class) (element_m Model name)

    I want to make route for pagination for sections, elements and universities list

    “career” is my folder of the module

    SO how can I do this? I tried this one

    $route['career/admin/element/(:num)?'] = 'admin_element/index/$3';

    But it doesn’t work, anything wrong on the routing?

  • #134 / Apr 16, 2010 1:11pm

    Phil Sturgeon

    2889 posts

    Clearly:

    $route['career/admin/element/(:num)?'] = 'admin_element/index/$3'; 
    //
    $route['career/admin/element/(:num)?'] = 'admin_element/index/$1';

    Im sorry Nurdin but I can’t walk you through every step of this. These are issues with CodeIgniter and general publicly available and documented third-party libs. I really don’t have time to support you at each step along the way.

    Good luck!

  • #135 / Apr 16, 2010 1:20pm

    Thank you very much, I already revised Codeigniter and actually their routing is different, that’s why I asked this question here. I tried the way you specified changing $3 to $1 but it doesn’t work.

    But thanks anyway. I’ll try to do by myself.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases