Re: user manager system(help me)
If you need a row-level-acl solution, you can check out the SuperAuth plugin that extends Auth and Acl for row-level-acl, the repository is located at http://www.github.com/Theaxiom/SuperAuth On May 29, 11:48 pm, John Andersen wrote: > Have a look at the CakePHP manual > at:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application > > Is that not what you want? Or at least something with which you can > expand on! > Enjoy, > John > > On May 30, 7:38 am, hoss7 wrote: > > > > > hi i am new in cakephp > > i want some user manager system(with Permission) for cakephp 1.3 > > > link > > this:http://www.studiocanaria.com/articles/cakephp_auth_component_users_gr... > > > i cant run this code in cakephp 1.3 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: ACL users permission settings
If you need a row-level-acl solution, you can check out the SuperAuth plugin that extends Auth and Acl for row-level-acl, the repository is located at http://www.github.com/Theaxiom/SuperAuth On May 29, 11:51 pm, John Andersen wrote: > Have a look at the sample application in the CakePHP manual > at:http://book.cakephp.org/view/1543/Simple-Acl-controlled-Application > > Maybe that you can use as a beginning and then expand on it? > Enjoy, > John > > On May 28, 8:28 am, ET3 wrote: > > > > > I am developing a system where I need to set permission for users to > > access different groups. I need to build an interface in admin panel > > so that admin can set this access permission for users. Can any one > > give me some idea and some source code for this? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper to do a sliding animation
jCarousel is exactly what I am looking for! Curious, any alternative to jCarousel ? On May 31, 2:14 pm, Bryan Lim wrote: > i see. Thanks guys. Will look into them !! > > On May 31, 2:01 am, calvin wrote: > > > On our site (rottenrecords.com, the "new releases" and "featured > > videos" panels on the homepage) we use the jQuery Scrollable plugin. I > > made a helper for it, but it's not really necessary. > > > Oh, and that WWF interface is done in flash--that's why it's all > > pixelated and blurry-looking. > > > On May 30, 4:08 am, Bryan Lim wrote: > > > > Hi all, > > > > I am looking for a helper to do a sliding animation. > > > > It is found inhttp://www.worldwildlife.org/undertheyear of tiger > > > animation where you can go forward or backward accordingly. if you use > > > firebug, it's under div class="whatsInside" > > > > What do we call this kinda of widget? > > > > Thanks! > > > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper to do a sliding animation
i see. Thanks guys. Will look into them !! On May 31, 2:01 am, calvin wrote: > On our site (rottenrecords.com, the "new releases" and "featured > videos" panels on the homepage) we use the jQuery Scrollable plugin. I > made a helper for it, but it's not really necessary. > > Oh, and that WWF interface is done in flash--that's why it's all > pixelated and blurry-looking. > > On May 30, 4:08 am, Bryan Lim wrote: > > > Hi all, > > > I am looking for a helper to do a sliding animation. > > > It is found inhttp://www.worldwildlife.org/underthe year of tiger > > animation where you can go forward or backward accordingly. if you use > > firebug, it's under div class="whatsInside" > > > What do we call this kinda of widget? > > > Thanks! > > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: 1.2.7, Application and plugin intercommunication, looking for ideas, comments, etc.
Bump! Any comments, ideas, thoughts?? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakeFest 2010 Website Launched
The website for CakeFest 2010 has just been launched. http://cakefest.org You can now signup if you are interested in attending. Tickets will be on sale soon. People interested in speaking at cakefest can submit a talk proposal via the dashboard, once you are logged in. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: The page isn't redirecting properly
Thank you very much for your kind reply. I'm using xamp so i have installed that script in the location htdocs/karuppu/test but when i try to load the home page i getting that error (The page isn't redirecting properly). My default controller is 'actions' and an action (method) is 'home'. That is defined in the routes.php in the config folder. Router::connect('/', array('controller' => 'auctions', 'action' => 'home')); Also I have set the configuration variable that is $config['App'] ['url'] = 'http://localhost' in my config.php that is located in the config (app) folder; Also rule in the htaccess as following RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] - karuppusamy On May 29, 4:24 pm, John Andersen wrote: > Please provide more information - like which controller and which > action you are trying to access through your browser (the url). Then > show your controllers code for the corresponding action. Maybe then we > will better be able to point you somewhere :) > Enjoy, > John > > On May 29, 9:46 am, karuppu wrote: > > > Dear all, > > > I have installed my site created in cakePHP in local environment (my > > pc) unfortunately when i run that on browser that browser is showing a > > following error message "Thepageisn'tredirectingproperly". I > > couldn't find what is the cause of this. Kindly show the way to me. > > > Thank you Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
another timeline helper question
Hi all, how do I get $data from http://bakery.cakephp.org/leafs/view/81 cakephp is complaining undefined variable data. I am new to both php and cakephp. need help! /b Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper naming convention
Hi all, I used what Miles suggested. But don't work. Right now, I am using this: Class: TimeLineHelper File:timeline.php include: $helpers=array('timeline'); which is working fine. am still curious why the suggested namiing don't work ? /b On May 31, 4:46 am, Miles J wrote: > Yeah Cakes naming conventions can be confusing: > > Class: TimeLineHelper > File: time_line.php > Include: $helpers = array('TimeLine') > > On May 29, 8:03 pm, Steve Love wrote: > > > The error message gives you a subtle hint. > > With a file named time_line.php, try defining it in the controller as: > > var $helpers = array('TimeLine'); > > > Steve > > > On May 29, 8:58 pm, Bryan Lim wrote: > > > > Hi all, > > > > Can someone please tell me what did I do wrong with the naming > > > convention? > > > > I named myhelpertime_line.php. It is called class TimeLineHelper > > > extends AppHelper. > > > > At the controller, var $helpers = array("time_line"); > > > > But it gives me error that TimeLineHelper is not found. > > > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper. > > > $helpers = array("tl"); > > > > it works. > > > > I am using cakephp 1.3. > > > > Thanks! > > > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
HtmlHelper within Helper causes sql_dump.ctp to fail.
Hello, I have a quirky problem which I just noticed while preparing to optimize the application my team is building. I haven't set the debug value within config/core.php to "2" in a couple weeks to look at the SQL output, and noticed today that it was completely broken. After tinkering around a little, it seems that by using "var $helpers = array('Html');" within MyHelper so that we have access to $this->Html methods, it causes cake/libs/views/elements/sql_dump.ctp to completely fail, and I am not entirely clear why. My team hasn't altered any of the core CakePHP 1.3 library files, and pages where we aren't using MyHelper render the sql_dump.ctp output just fine. Has anyone experienced this before? I plan on spending a little time to troubleshoot this more, but am checking with the list with the hope that it's something simple that I have overlooked. Brian Jones brian.jo...@istpika.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
no flash messages in the login page using cake 1.3
Hi All, I am testing cake 1.3 in a new application I am building and I have a weird behaviour: No flash messages are shown in the login page. I am using Auth and ACL, and the session component and helpers are already in my app_controller. Seems like a new session is created everytime the user hits the login action of my users controller. I have some login in the login action to save the user IP address and log the access. any hints? Thanks in advance Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Testing controllers - no param is set
Hey, i try testing controllers as described by mark story (http://mark- story.com/posts/view/testing-cakephp-controllers-the-hard-way).. The Problem - i call the method with one param but the view mehtod recognize it, even it is in $this->params... In the Test: $this->Users->params = Router::parse('/admin/users/delete_member/ 14'); $this->Users->beforeFilter(); $this->Users->Component->startup($this->Users); $this->Users->admin_delete_member(); In the Method function admin_delete_member($id = null) { pr($id); pr($this->params); die(); } Result: Array ( [controller] => users [action] => delete_member [named] => Array ( ) [pass] => Array ( [0] => 14 ) [prefix] => admin [admin] => 1 [plugin] => [isAjax] => ) If I call the method in the application (not via testsuite), it works and show me the correct param Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Prefix routing problem
no, i use the authsome component from debuggable... On 28 Mai, 10:18, Bogdan Bursuc wrote: > Do you use the Auth component ? > > > > On Fri, May 28, 2010 at 9:07 AM, cronet wrote: > > hm... > > > i solved my problem with the following route configuration: > > > Router::connect('/aktivieren/*', array('controller' => 'users', > > 'action' => 'activate', 'admin'=>null)); > > > I don't know why cake behave this way, because in the manual there's a > > note to user admin=>false, not admin=>null in the html link array... > > > On 28 Mai, 07:47, cronet wrote: > > > that does not solve the problem... > > > > Router::connect('/aktivieren', array('controller' => 'users', 'action' > > > => 'activate', 'admin'=>false, 'prefix'=>false )); > > > Router::connect('/aktivieren/', array('controller' => 'users', > > > 'action' => 'activate', 'admin'=>false, 'prefix'=>false )); > > > Router::connect('/aktivieren/*', array('controller' => 'users', > > > 'action' => 'activate', 'admin'=>false, 'prefix'=>false )); > > > > I tried all combinations and accessing > > > /aktivieren > > > /aktivieren/ > > > /aktivieren/blabla > > > > it ends up in "admin_activate" not "activate" > > > > On 28 Mai, 06:24, Bogdan Bursuc wrote: > > > > > You need to define the master route, also: > > > > > Router::connect('/aktivieren/', ...); That's the router you access when > > you > > > > enter /aktivieren. > > > > > On Fri, May 28, 2010 at 2:05 AM, cronet wrote: > > > > > Hey, > > > > > > i defined the following route: > > > > > > Router::connect('/aktivieren/*', array('controller' => > > 'users', > > > > > 'action' => 'activate', 'admin'=>false)); > > > > > > But everytime when I try to access /aktivieren cake routes me to > > > > > admin_activatie... > > > > > > Here ar some vars from pr($this) > > > > > > [action] => admin_activate > > > > > [uses] => > > > > > [params] => Array > > > > > ( > > > > > [named] => Array > > > > > ( > > > > > ) > > > > > > [pass] => Array > > > > > ( > > > > > ) > > > > > > [controller] => users > > > > > [action] => admin_activate > > > > > [admin] => > > > > > [prefix] => admin > > > > > [plugin] => > > > > > [form] => Array > > > > > ( > > > > > ) > > > > > > [url] => Array > > > > > ( > > > > > [url] => aktivieren > > > > > ) > > > > > > ) > > > > > > Why I get always to admin, even when i set admin=>false ? > > > > > > Regards, > > > > > AxlF > > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp > > others > > > > > with their CakePHP related questions. > > > > > > You received this message because you are subscribed to the Google > > Groups > > > > > "CakePHP" group. > > > > > To post to this group, send email to cake-php@googlegroups.com > > > > > To unsubscribe from this group, send email to > > > > > cake-php+unsubscr...@googlegroups.com > > >For > > more options, visit this group at > > > > >http://groups.google.com/group/cake-php?hl=en > > > > > -- > > > > Bogdan Iulian Bursuc > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en > > -- > Bogdan Iulian Bursuc Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Select options after validate are not displayed
Yeah, it was problem in something like that. Big thanks!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper naming convention
Yeah Cakes naming conventions can be confusing: Class: TimeLineHelper File: time_line.php Include: $helpers = array('TimeLine') On May 29, 8:03 pm, Steve Love wrote: > The error message gives you a subtle hint. > With a file named time_line.php, try defining it in the controller as: > var $helpers = array('TimeLine'); > > Steve > > On May 29, 8:58 pm, Bryan Lim wrote: > > > Hi all, > > > Can someone please tell me what did I do wrong with the naming > > convention? > > > I named my helper time_line.php. It is called class TimeLineHelper > > extends AppHelper. > > > At the controller, var $helpers = array("time_line"); > > > But it gives me error that TimeLineHelper is not found. > > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper. > > $helpers = array("tl"); > > > it works. > > > I am using cakephp 1.3. > > > Thanks! > > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Select options after validate are not displayed
And you say they are not re-populating after validation? Check to be sure that your queries are not not nested in something like this: if(empty($this->data)) { // your queries here } -Ed On Sun, May 30, 2010 at 3:20 PM, Ziki wrote: > No, same controller, same action. > > On 30 svi, 21:27, Ed Propsner wrote: > > Are you submitting the form to a different controller or action other > than > > the one where you are setting your select values? > > > > - Ed > > > > On Sun, May 30, 2010 at 2:22 PM, Ziki wrote: > > > I have that problem that after validation, when it is again diplayed > > > my form with error messages, there are no options in select fields. It > > > is because options in select filds are variables declared and defined > > > in controller action, so after validation thoose variables aren't > > > declared and defined. What should I do? > > > > > This is controllers variables: > > > > > $acctypes = $this->Acctype->find('list',array( > > >'fields' => array('id','title') > > >)); > > > $cities = $this->City->find('list',array( > > >'fields' => array('id','title') > > >)); > > > $facilities = $this->Facility->find('list',array( > > >'fields' => array('id','title') > > >)); > > > $this->set(compact('cities','acctypes','facilities')); > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > others > > > with their CakePHP related questions. > > > > > You received this message because you are subscribed to the Google > Groups > > > "CakePHP" group. > > > To post to this group, send email to cake-php@googlegroups.com > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com > >For > more options, visit this group at > > >http://groups.google.com/group/cake-php?hl=en > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Select options after validate are not displayed
No, same controller, same action. On 30 svi, 21:27, Ed Propsner wrote: > Are you submitting the form to a different controller or action other than > the one where you are setting your select values? > > - Ed > > On Sun, May 30, 2010 at 2:22 PM, Ziki wrote: > > I have that problem that after validation, when it is again diplayed > > my form with error messages, there are no options in select fields. It > > is because options in select filds are variables declared and defined > > in controller action, so after validation thoose variables aren't > > declared and defined. What should I do? > > > This is controllers variables: > > > $acctypes = $this->Acctype->find('list',array( > > 'fields' => array('id','title') > > )); > > $cities = $this->City->find('list',array( > > 'fields' => array('id','title') > > )); > > $facilities = $this->Facility->find('list',array( > > 'fields' => array('id','title') > > )); > > $this->set(compact('cities','acctypes','facilities')); > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to cake-php@googlegroups.com > > To unsubscribe from this group, send email to > > cake-php+unsubscr...@googlegroups.comFor > > more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Select options after validate are not displayed
Are you submitting the form to a different controller or action other than the one where you are setting your select values? - Ed On Sun, May 30, 2010 at 2:22 PM, Ziki wrote: > I have that problem that after validation, when it is again diplayed > my form with error messages, there are no options in select fields. It > is because options in select filds are variables declared and defined > in controller action, so after validation thoose variables aren't > declared and defined. What should I do? > > This is controllers variables: > > $acctypes = $this->Acctype->find('list',array( >'fields' => array('id','title') >)); > $cities = $this->City->find('list',array( >'fields' => array('id','title') >)); > $facilities = $this->Facility->find('list',array( >'fields' => array('id','title') >)); > $this->set(compact('cities','acctypes','facilities')); > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Select options after validate are not displayed
I have that problem that after validation, when it is again diplayed my form with error messages, there are no options in select fields. It is because options in select filds are variables declared and defined in controller action, so after validation thoose variables aren't declared and defined. What should I do? This is controllers variables: $acctypes = $this->Acctype->find('list',array( 'fields' => array('id','title') )); $cities = $this->City->find('list',array( 'fields' => array('id','title') )); $facilities = $this->Facility->find('list',array( 'fields' => array('id','title') )); $this->set(compact('cities','acctypes','facilities')); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper to do a sliding animation
On our site (rottenrecords.com, the "new releases" and "featured videos" panels on the homepage) we use the jQuery Scrollable plugin. I made a helper for it, but it's not really necessary. Oh, and that WWF interface is done in flash--that's why it's all pixelated and blurry-looking. On May 30, 4:08 am, Bryan Lim wrote: > Hi all, > > I am looking for a helper to do a sliding animation. > > It is found inhttp://www.worldwildlife.org/under the year of tiger > animation where you can go forward or backward accordingly. if you use > firebug, it's under div class="whatsInside" > > What do we call this kinda of widget? > > Thanks! > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Custom Session handler with DB issue
On May 29, 11:17 pm, jerikschaeffer wrote: > > Unfortunately, everytime the session starts, meaning on every > page, I'm seeing the following debug messages: > > Warning (2): mysqli_real_escape_string() [function.mysqli-real-escape- > string]: Couldn't fetch mysqli [CORE/cake/libs/model/datasources/dbo/ > dbo_mysqli.php, line 201] Do you have the mysqli module installed? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper naming convention
The error message gives you a subtle hint. With a file named time_line.php, try defining it in the controller as: var $helpers = array('TimeLine'); Steve On May 29, 8:58 pm, Bryan Lim wrote: > Hi all, > > Can someone please tell me what did I do wrong with the naming > convention? > > I named my helper time_line.php. It is called class TimeLineHelper > extends AppHelper. > > At the controller, var $helpers = array("time_line"); > > But it gives me error that TimeLineHelper is not found. > > So I change time_line.php to tl.php. TimeLineHelper to TlHelper. > $helpers = array("tl"); > > it works. > > I am using cakephp 1.3. > > Thanks! > Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
DEFAULT_LANGUAGE always used in 1.3
Hi everyone. I'm upgrading an app from Cake 1.2.5 to 1.3.1. Previously (with Cake 1.2.5) we were defining DEFAULT_LANGUAGE as a fallback like so: define('DEFAULT_LANGUAGE', 'en_US'); And then allowing a switcher in the App Controller like so: $this->Session->write('Config.language', 'xx_XX'); // really a variable here This all worked fine, and grabbed the correct .po files from the locale directory. Now with Cake 1.3.1, I've found that having DEFAULT_LANGUAGE defined anywhere prevents switching the language in this way. If I comment out the define() statement or give the constant a different name, switching languages seems to work again. Is our implementation wrong? Is this a bug? Or should we just give the default language constant a different name and move on? Thanks in advance for any insight. Steve Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Release: CakePHP 1.3.1
According to this: http://cakephp.lighthouseapp.com/projects/42648/tickets/769-unserialize-error-cakephp-131-unusable-on-windows You have to edit file.php in order to fix it (which in not desirable too) On 30 Μάϊος, 14:41, Elte Hupkes wrote: > I get the exact same unserialize errors on a project previously > running fine on Cake 1.3 after updating to 1.3.1. Disabling cache > makes the error go away, but that's not really desirable of course.. > > On 30 mei, 02:48, Sergei wrote: > > > Hi, > > > just tried 1.3.1 with one of my project (Cake 1.3). It instantly gave > > me an errors on almost *every* page (see below). Removing TMP\cache > > \persistent\ files doesn't help. > > > = > > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > > 1661 bytes [CORE\cake\libs\cache\file.php, line 176] > > Code | Context > > $key = "cake_core_file_map" > > $time = 1275179913 > > $cachetime = 1275179919 > > $data = "" > > unserialize - [internal], line ?? > > FileEngine::read() - CORE\cake\libs\cache\file.php, line 176 > > Cache::read() - CORE\cake\libs\cache.php, line 347 > > App::getInstance() - CORE\cake\libs\configure.php, line 967 > > App::build() - CORE\cake\libs\configure.php, line 650 > > Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 431 > > Configure::getInstance() - CORE\cake\libs\configure.php, line 52 > > include - CORE\cake\bootstrap.php, line 38 > > [main] - APP\webroot\index.php, line 77 > > > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > > 28 bytes [CORE\cake\libs\cache\file.php, line 176] > > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > > 5 bytes [CORE\cake\libs\cache\file.php, line 176] > > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > > 105 bytes [CORE\cake\libs\cache\file.php, line 176] > > == > > > On May 30, 2:29 am, mark_story wrote: > > > > The CakePHP development team is happy to announce the release of > > > CakePHP 1.3.1[1]. 1.3.1 is the first maintenance release for 1.3 and > > > contains bugfixes and optimizations for features found in 1.3. No new > > > features will be introduced in the maintenance releases for 1.3. > > > Regular maintenance releases for 1.3 are planned on a monthly basis > > > for the near future. > > > > Since the release of CakePHP 1.3.0 last month, there have been more > > > than 70 commits and 45 tickets resolved. There have been a few changes > > > that may affect your application. > > > > - The conditional check around including custom session configuration > > > files was removed. This fixes issues where requestAction could cause > > > loss of session settings, and improves the end developers ability to > > > customize the session. Custom session files should ensure that > > > classes/functions are conditionally declared. > > > > - How virtualFields are detected and parsed was modified to allow > > > virtualFields on the same table. A virtualFieldSeparator property was > > > added to DboSource to allow customization of the virtualField > > > separator. If you have fields containing '__' you may have to modify > > > this setting to avoid issues. > > > > - EmailComponent had a number of changes made to better support ELHO > > > and slow SMTP servers. > > > > Be sure to check the full changelog[2] for all changes that have > > > occurred. We'd like to welcome Juan Basso[3] to the development team. > > > Juan has been very active in the brazilian community and we're really > > > happy to have him. Work on the 2.0 branch continues to progress. > > > Currently much of the effort is focused on getting our migration to > > > PHPUnit complete. We'd like to thank the ongoing community efforts > > > around the documentation. There are now over 18,500 revisions in the > > > cookbook and 4 languages now have more than 70% of the documentation > > > translated. > > > > As always, thank you for helping us make a great framework and > > > fantastic community. > > > > Download a packaged release [1] > > > View the changelog [2] > > > > [1]http://github.com/cakephp/cakephp/downloads > > > [2]http://cakephp.lighthouseapp.com/projects/42648/changelog-1-3-1 > > > [3]http://blog.cakephp-brasil.org/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: helper to do a sliding animation
On 30 May 2010, at 12:08, Bryan Lim wrote: > I am looking for a helper to do a sliding animation. > > It is found in http://www.worldwildlife.org/ under the year of tiger > animation where you can go forward or backward accordingly. if you use > firebug, it's under div class="whatsInside" > > What do we call this kinda of widget? something you'd do in javascript / jquery. best to look at jquery.com and find a plugin there. try looking at jcarousel or innerfade. not a cakephp question though. -- Mike Karthäuser Managing Director - Brightstorm Ltd Email: mi...@brightstorm.co.uk Web: http://www.brightstorm.co.uk Tel: 07939 252144 Address: 1 Brewery Court, North Street, Bristol, BS3 1JS Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: custom formhelper
Thank for the response. I stil have a doubt about this way of proceding dojo_form.php App::Import('Form'); class DojoFormHelper extends FormHelper { var $helpers = array('DojoHtml','Js'); } In my case, I need to fork the whole FormHelper subtituting the Html occurences with DojoHtml or there is a smarter way for it ? euromark ha scritto: its App::Import('Helper', 'Html'); etc On 30 Mai, 02:15, luca capra wrote: Hi all, Using 1.3 stable I'm trying to override some function in a custom helper overriding a core helper (form+html) An example: dojo_html.php App::Import('Html'); class DojoHtmlHelper extends HtmlHelper { var $tags = array( 'form' => '', 'input' => '', ... ); } dojo_form.php App::Import('Form'); class DojoFormHelper extends FormHelper { var $helpers = array('Html'=>'DojoHtml','Js'); ...some overridden functions... } but seems not to work. I've found thishttp://cakeqs.org/eng/questions/view/custom_functions_arguments_in_fo... and this (old) posthttp://cakebaker.42dh.com/2008/10/18/dont-abuse-the-apphelper-to-exte... but still can't get it... my aim is to call $form->input with customized $tags from html helper and get the dojo-related code. Can somebody help me? Thanks in advance, Luca Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Release: CakePHP 1.3.1
I get the exact same unserialize errors on a project previously running fine on Cake 1.3 after updating to 1.3.1. Disabling cache makes the error go away, but that's not really desirable of course.. On 30 mei, 02:48, Sergei wrote: > Hi, > > just tried 1.3.1 with one of my project (Cake 1.3). It instantly gave > me an errors on almost *every* page (see below). Removing TMP\cache > \persistent\ files doesn't help. > > = > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > 1661 bytes [CORE\cake\libs\cache\file.php, line 176] > Code | Context > $key = "cake_core_file_map" > $time = 1275179913 > $cachetime = 1275179919 > $data = "" > unserialize - [internal], line ?? > FileEngine::read() - CORE\cake\libs\cache\file.php, line 176 > Cache::read() - CORE\cake\libs\cache.php, line 347 > App::getInstance() - CORE\cake\libs\configure.php, line 967 > App::build() - CORE\cake\libs\configure.php, line 650 > Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 431 > Configure::getInstance() - CORE\cake\libs\configure.php, line 52 > include - CORE\cake\bootstrap.php, line 38 > [main] - APP\webroot\index.php, line 77 > > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > 28 bytes [CORE\cake\libs\cache\file.php, line 176] > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > 5 bytes [CORE\cake\libs\cache\file.php, line 176] > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of > 105 bytes [CORE\cake\libs\cache\file.php, line 176] > == > > On May 30, 2:29 am, mark_story wrote: > > > The CakePHP development team is happy to announce the release of > > CakePHP 1.3.1[1]. 1.3.1 is the first maintenance release for 1.3 and > > contains bugfixes and optimizations for features found in 1.3. No new > > features will be introduced in the maintenance releases for 1.3. > > Regular maintenance releases for 1.3 are planned on a monthly basis > > for the near future. > > > Since the release of CakePHP 1.3.0 last month, there have been more > > than 70 commits and 45 tickets resolved. There have been a few changes > > that may affect your application. > > > - The conditional check around including custom session configuration > > files was removed. This fixes issues where requestAction could cause > > loss of session settings, and improves the end developers ability to > > customize the session. Custom session files should ensure that > > classes/functions are conditionally declared. > > > - How virtualFields are detected and parsed was modified to allow > > virtualFields on the same table. A virtualFieldSeparator property was > > added to DboSource to allow customization of the virtualField > > separator. If you have fields containing '__' you may have to modify > > this setting to avoid issues. > > > - EmailComponent had a number of changes made to better support ELHO > > and slow SMTP servers. > > > Be sure to check the full changelog[2] for all changes that have > > occurred. We'd like to welcome Juan Basso[3] to the development team. > > Juan has been very active in the brazilian community and we're really > > happy to have him. Work on the 2.0 branch continues to progress. > > Currently much of the effort is focused on getting our migration to > > PHPUnit complete. We'd like to thank the ongoing community efforts > > around the documentation. There are now over 18,500 revisions in the > > cookbook and 4 languages now have more than 70% of the documentation > > translated. > > > As always, thank you for helping us make a great framework and > > fantastic community. > > > Download a packaged release [1] > > View the changelog [2] > > > [1]http://github.com/cakephp/cakephp/downloads > > [2]http://cakephp.lighthouseapp.com/projects/42648/changelog-1-3-1 > > [3]http://blog.cakephp-brasil.org/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
helper to do a sliding animation
Hi all, I am looking for a helper to do a sliding animation. It is found in http://www.worldwildlife.org/ under the year of tiger animation where you can go forward or backward accordingly. if you use firebug, it's under div class="whatsInside" What do we call this kinda of widget? Thanks! Bryan Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: custom formhelper
its App::Import('Helper', 'Html'); etc On 30 Mai, 02:15, luca capra wrote: > Hi all, > > Using 1.3 stable I'm trying to override some function in a custom helper > overriding a core helper (form+html) > An example: > > dojo_html.php > > App::Import('Html'); > class DojoHtmlHelper extends HtmlHelper { > var $tags = array( > 'form' => '', > 'input' => '', > ... > ); > > } > > dojo_form.php > > App::Import('Form'); > class DojoFormHelper extends FormHelper { > > var $helpers = array('Html'=>'DojoHtml','Js'); > > ...some overridden functions... > > } > > but seems not to work. > I've found > thishttp://cakeqs.org/eng/questions/view/custom_functions_arguments_in_fo... > and this (old) > posthttp://cakebaker.42dh.com/2008/10/18/dont-abuse-the-apphelper-to-exte... > but still can't get it... > > my aim is to call $form->input with customized $tags from html helper > and get the dojo-related code. > Can somebody help me? > > Thanks in advance, > Luca Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Deep associations
I suggest you take a look at the Containable behaviour in the CakePHP manual at: http://book.cakephp.org/view/1323/Containable as well as how to join models at: http://book.cakephp.org/view/1039/Associations-Linking-Models-Together#Joining-tables-1047 and last but maybe more important, how to use complex find conditions, at: http://book.cakephp.org/view/1017/Retrieving-Your-Data#Complex-Find-Conditions-1030 The above information should give you the necessary tools to implement your count of items per user. Enjoy, John On May 30, 7:44 am, azv wrote: > I'm playing with a simple model where > > Section hasMany Catalogitem hasMany Item belongsTo User > > and naturaly the other way- > > User hasMany Item belongsTo Catalogitem belongsTo Section. > > I'm trying to get count how many items I have per section for > user.id=1 - which is a very simple sql query (with 2 joins)- > > SELECT sections.id, count(*) > FROM sections > JOIN catalogitems ON sections.id=catalogitems.section_id > JOIN items ON catalogitems.id=items.catalogitem_id > WHERE user.id=1 > GROUP BY sections.id > > But I'm not sure how to use cake for that: > > $this->Section->find('all' , array( 'conditions' => > array('Item.user_id' => 1)) ) > > I'm getting an error that 'Item.user_id' is an Unknown column. > > Can anyone shed light regarding what's the problem, and how do I get > the find() to return a count of items per section for user.id? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en