R: Menu from database

2007-03-19 Thread GMail
I made a little test and I have put: pr($this-uses); exit(); in cake/libs/controller/controller.php __construct() function, before it exiting. What I discovered was that if you set $uses to null or an empty array() in your controller it overrides the declaration in app_controller,

Re: Thank You for CakePHP

2007-03-19 Thread digital spaghetti
Definetly, I've been learning with CakePHP to just try things and see if they work (using the MVC principal) and been surprised to find that sometimes to do, with simplicity. I also have learned to just drive right into the code if I am looking for something - the details are all there how to

Re: saving sensitive data with md5

2007-03-19 Thread [EMAIL PROTECTED]
On Mar 19, 5:48 am, Daniel.S [EMAIL PROTECTED] wrote: Will that re-hash the MD5'ed password field when editing and then saving again? yes, beforeSave catches that --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

CakePHP Planet

2007-03-19 Thread Javier Ramirez Molina
Hello, I don't know if this topic has been already discussed but I think it could be a great idea to create a CakePHP Planet. As you can read from wikipedia[1]: A planet is a web site that aggregates posts from a set of related blogs. Such sites are commonly associated with free and open-source

Associative arrays in this-data

2007-03-19 Thread Gonçalo Marrafa
Hi all. In my app i need to pass an associative array of data to my model, kinda like: [Model] = array ([someKey] = 'some value', ... [someOtherKey] = array([subKey1] = 'sub key 1 value', [subKey2] = 'sub key 2

Re: Many Controllers - one view

2007-03-19 Thread Dominik Schwind
Thankis jitka, $this-viewPath was what I have been searching for and couldn't find. I guess my hack with viewRender() is obsolete now that I know of that one. On Mar 16, 10:55 pm, jitka [EMAIL PROTECTED] wrote: in any controller's method: $this-viewPath = 'common';

How to identify the base path of a Cake installation?

2007-03-19 Thread Peg
Hi all, i'm quite new to Cake but I'm enjoiing it so much. I start writing a jQuery helper to include jQuery itself, packaged plugins and named script like controller dependent, action, ecc. I'm trying to identify on the fly cake's intallation path to use it into import rules. Let me say this

about 2 db link

2007-03-19 Thread Nosy!
i use 2 db link,but after the second link ,the first link will down. only the second link is ok for the app. how to make the first link to be ok? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: CakePHP Planet

2007-03-19 Thread djiize
I think that: http://thinkingphp.org/cakenews/ Thanks Felix ;) On 19 mar, 10:05, Javier Ramirez Molina [EMAIL PROTECTED] wrote: Hello, I don't know if this topic has been already discussed but I think it could be a great idea to create a CakePHP Planet. As you can read from wikipedia[1]: A

Re: CakePHP Planet

2007-03-19 Thread Javier Ramirez Molina
Thats perfect!!! I didn't know it. Thanks again. 2007/3/19, djiize [EMAIL PROTECTED]: I think that: http://thinkingphp.org/cakenews/ Thanks Felix ;) On 19 mar, 10:05, Javier Ramirez Molina [EMAIL PROTECTED] wrote: Hello, I don't know if this topic has been already discussed but I think

Re: about 2 db link

2007-03-19 Thread djiize
search in the group, there were 1 or 2 series on that last week On 19 mar, 09:01, Nosy! [EMAIL PROTECTED] wrote: i use 2 db link,but after the second link ,the first link will down. only the second link is ok for the app. how to make the first link to be ok?

Re: How to identify the base path of a Cake installation?

2007-03-19 Thread djiize
look at the constants defined in cake/config/paths.php Peg a écrit : Hi all, i'm quite new to Cake but I'm enjoiing it so much. I start writing a jQuery helper to include jQuery itself, packaged plugins and named script like controller dependent, action, ecc. I'm trying to identify on the

created-filed in db-table

2007-03-19 Thread sunertl
I use the (amazing) 1.2 alpha-release for a few days now and have problems with fields named created in db-tables. For some reasons I do not use datetime but integer for created. Cake seems to have problems with that because I always get errors in line 1052 in cake/ model/model.php. I tried to

Re: created-filed in db-table

2007-03-19 Thread Langdon Stevenson
Hi sunertl I don't use 1.2 yet, but in I expect that it is the same as 1.x the field 'created' (and the field 'modified') are special fields in Cake. It will automatically update these fields for you when you create and save models. They do require the data type of date/time to work and

Re: created-filed in db-table

2007-03-19 Thread sunertl
I worked around the problem by changing the name but in my opinion this is not how it should work. Currently I am developing a system for project management in cake and we need the unix timestamp for interchanging purposes. It is the format which is understood by all of our (non-cake-)systems

Re: created-filed in db-table

2007-03-19 Thread Langdon Stevenson
I worked around the problem by changing the name but in my opinion this is not how it should work. Ok, so you are only concerned about the data type. As I suggested you could get around this issue using callbacks: beforeSave() to change the Unix timestamp to a Cake friendly date/time on

Re: created-filed in db-table

2007-03-19 Thread sunertl
hm... I wrote a pretty long answer but somehow it was not posted?!?! damn. ok, again but a little bit shorter. I have to use the unix timestamp because it is obligatory in our company. Using datetime simply would lead to not getting my app approved. Changing the name is the way I use now. But I

RE: saving sensitive data with md5

2007-03-19 Thread Mariano Iglesias
Good point, I was assuming you would notice and unset() password on an edit (since the only way a user can edit it is by providing the unencrypted form.) Yours is a good solution *except* when the user enters a 32 character length password consisting of only 0-9, A-F or a-f characters ;) I

RE: Introducing myself

2007-03-19 Thread Mariano Iglesias
I don't care if you are the CEO of IBM. THIS IS FREAKING SPAM! -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog:

Re: created-filed in db-table

2007-03-19 Thread sunertl
Oh I please do not get me wrong! I really love the concept of cake and the restrictions it has because it really made me a better and tidier programmer since I use it. But sometimes - and really only sometimes - it lacks of fallback options. Like in this case. As far as I understand the code it

Re: Introducing myself

2007-03-19 Thread Dr. Tarique Sani
On 3/19/07, Mariano Iglesias [EMAIL PROTECTED] wrote: I don't care if you are the CEO of IBM. THIS IS FREAKING SPAM! And most likely automated - reply to which would never be read! Tarique -- = PHP for E-Biz: http://sanisoft.com

RE: Introducing myself

2007-03-19 Thread Mariano Iglesias
I know, I just can't seem to avoid doing so. The silent and unheard scream of a fed up individual -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your

Re: R: Menu from database

2007-03-19 Thread LSL
Thanks a lot. It seems that Ganzino's solution is perfect and transparent. Now I can try to rewrite the rest of our web into CakePHP. Thanks again for this SW. Lukas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

undefined stdClass::read() but model is included

2007-03-19 Thread Mattijs
The situation is as follows: AppController has a function isLogged which is using the 'Member' model. AppController-uses = array('Member'); ContentController has a function index() which when called just shows the frontpage: no problems ContentController has a function page() which should

Re: undefined stdClass::read() but model is included

2007-03-19 Thread Mattijs
I have solved a part: a view was named wrong which caused the error. However: why wont cake display view not found instead of this inappropriate error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

RE: undefined stdClass::read() but model is included

2007-03-19 Thread Mariano Iglesias
Is Member extending from AppModel? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar

$this-set with email component don't working with php4 (1.2)

2007-03-19 Thread Ámon Tamás
Hello, $this-set not working with email component in php 4. The same code is working in php 5. If I use $this-set('code', $id); I get an error message (with DEBUG,1) the $code not defined. -- Ámon Tamás http://linkfelho.amon.hu --~--~-~--~~~---~--~~ You

cake with no db - forgotten how

2007-03-19 Thread TWIOF
Hi, I remember setting up cake with no db recently (to use cakes validation and various other helpfull bits) but have forgotten how I did it. I had a search of the group and didn't find much. Any pointers would be much apreciated Thanks TWIOF

Re: cake with no db - forgotten how

2007-03-19 Thread John David Anderson (_psychic_)
On Mar 19, 2007, at 8:44 AM, TWIOF wrote: Hi, I remember setting up cake with no db recently (to use cakes validation and various other helpfull bits) but have forgotten how I did it. I had a search of the group and didn't find much. Just use the core PagesController by putting your

Re: cake with no db - forgotten how

2007-03-19 Thread TWIOF
So no need to alter the database.php? Even simpler than i thought! Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: cake with no db - forgotten how

2007-03-19 Thread John David Anderson (_psychic_)
On Mar 19, 2007, at 8:51 AM, TWIOF wrote: So no need to alter the database.php? Nope - just use PagesController for content delivery and you should be fine. Even simpler than i thought! :o) -- John --~--~-~--~~~---~--~~ You received this message because

Re: Introducing myself

2007-03-19 Thread mindcharger
Mariano, You can't imagine how many times I feel like this: The silent and unheard scream of a fed up individual I understand you had to do it... ;-) Is anyone cleaning the group from messages like this (or, I might add, from any messages that don't fit here, such as messages on native

Re: Introducing myself

2007-03-19 Thread gwoo
yes there are a couple of us that spend too many hours in the day moderating messages and approving new members. I have to say thise one gave me trouble, so I figured I would allow it through. It has a hint of spam, but then again everyone should know that this guys spams so no one goes to him

Re: R: Menu from database

2007-03-19 Thread nateklaiber
Just a 'second thanks' as LSL said. I was looking for this same solution (seems others are too, in other threads) - and this seems to be the best solution/placement to get the desired effect. Seems simple now that I look at it. On Mar 19, 3:30 am, GMail [EMAIL PROTECTED] wrote: I made a little

Re: is acl.php not working?

2007-03-19 Thread rtconner
Yeah, I ended up having to download 1.1 and run the script off that version, and then just use 1.2 for my site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: cake with no db - forgotten how

2007-03-19 Thread robechar
If you are in need of validation, however, you can still set up the controllers and models and set the model class variable: var $useTable = false; This allows you to use the built-in Cake validation scheme on your data, but not use a database. On Mar 19, 7:44 am, TWIOF [EMAIL PROTECTED]

Re: afterFind model problem

2007-03-19 Thread stevenoone
*bump* Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: CakePHP Planet

2007-03-19 Thread digital spaghetti
That is good, but certinly all the big projects like Drupal or Ubuntu have their own planet subdomain - which people now more commonly expect. Maybe pointing planet.cakephp.org to that site would do it rather than develop another one? Tane On 3/19/07, djiize [EMAIL PROTECTED] wrote: I think

RE: CakePHP Planet

2007-03-19 Thread Mariano Iglesias
https://trac.cakephp.org/ticket/1795 Comino soon... -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog:

Re: Introducing myself

2007-03-19 Thread Chris Lamb
gwoo [EMAIL PROTECTED] wrote: I can assure you that if no one was moderating this group it would be much uglier. Thank you for your efforts here. -- Chris Lamb, Leamington Spa, UKGPG: 0x634F9A20 signature.asc Description: PGP signature

Problem with the value() function in dbo_oracle.php

2007-03-19 Thread Gilles Dubois
Version : CakePHP version 1.2.0.4451alpha The value() function in the driver doesn't handle integer and null values. I modified it to this : function value($data, $column_type = null) { // this can also be accomplished through an Oracle NLS parameter if ($data == null)

A bug in View constructor ?

2007-03-19 Thread Gilles Dubois
Version : CakePHP version 1.2.0.4451alpha The class constructor is waiting for an argument name $controller. The class has an attribute $controller. In previous versions, I was used to reach the controller from the view (eg in a .thtml file) using $this-controller. It doesn't work anymore with

A bug about the AppHelper class

2007-03-19 Thread Gilles Dubois
CakePHP version 1.2.0.4451alpha Previously I was using an older version of CakePHP, which didn't used an intermediary AppHelper class in helpers hierarchy between HtmlHelper and Helper. I found out that sometimes, using HtmlHelper resulted in an error : Cake complained about not being able to

A question about the Email component

2007-03-19 Thread Gilles Dubois
CakePHP version 1.2.0.4451alpha When calling the -send() method on a EmailComponent object, CakePHP try to used a unnamed layout. This generate an error. Here's a sample code from me showing my use of this component : $this-Email-to = $aTask['Owner']['email']; $this-Email-from =

Re: A bug in View constructor ?

2007-03-19 Thread djiize
Not sure, but I read somewhere that this will not be possible anymore to access controller in view, cause it breaks MVC rules. Any expert to confirm or not? On 19 mar, 18:35, Gilles Dubois [EMAIL PROTECTED] wrote: Version : CakePHP version 1.2.0.4451alpha The class constructor is waiting for

Re: afterFind model problem

2007-03-19 Thread djiize
when you access to view, you have only one Employee in your array, so you cannot parse it the same way to determine which way, you can test isset($val['Employee']) On 19 mar, 17:14, stevenoone [EMAIL PROTECTED] wrote: *bump* Any ideas? --~--~-~--~~~---~--~~

Re: A bug in View constructor ?

2007-03-19 Thread bernardo
This seems to be the official word: http://groups.google.com/group/cake-php/msg/0747a1a1eda5f143 On Mar 19, 3:17 pm, djiize [EMAIL PROTECTED] wrote: Not sure, but I read somewhere that this will not be possible anymore to access controller in view, cause it breaks MVC rules. Any expert to

Re: A question about the Email component

2007-03-19 Thread djiize
did you create proper layouts in /app/views/layouts/email/ ? see http://bakery.cakephp.org/articles/view/203 for more info On 19 mar, 18:44, Gilles Dubois [EMAIL PROTECTED] wrote: CakePHP version 1.2.0.4451alpha When calling the -send() method on a EmailComponent object, CakePHP try to used

Re: A bug about the AppHelper class

2007-03-19 Thread djiize
maybe if you create an app_helper.php in /app ? class AppHelper extends Helper { } so you don't touch core files... Or finding it in a nightly build to see what's in... On 19 mar, 18:41, Gilles Dubois [EMAIL PROTECTED] wrote: CakePHP version 1.2.0.4451alpha Previously I was using an older

Re: newbie. add inside a view

2007-03-19 Thread djiize
you can add a form (with Html helper for Cake 1.1 or Form helper for Cake 1.2) in you page, just specify the correct action for adding a comment (/comments/add ?) and to display the list of comments, if you setup your models associations (Comment belongsTo Post and Post hasMany Comment), when

Re: A bug in View constructor ?

2007-03-19 Thread nate
Eliminating direct access to the controller from the view was a concious design decision because it violates the principles of MVC separation, and we saw that it was resulting in some very bad code, i.e. people doing things they shouldn't be doing. The only reason it was allowed in the first

CakePHP Session expiring problems...

2007-03-19 Thread Andre
I was looking at the user authentication example in the manual, and I've noticed that the CakePHP Session do have a timeout after a certain amount of time, based on the application's security level. So, since I'm trying to build a blog application, this could be a problem, because if a session

Re: CakePHP Session expiring problems...

2007-03-19 Thread John David Anderson (_psychic_)
On Mar 19, 2007, at 1:04 PM, Andre wrote: I was looking at the user authentication example in the manual, and I've noticed that the CakePHP Session do have a timeout after a certain amount of time, based on the application's security level. So, since I'm trying to build a blog

Re: CakePHP Planet

2007-03-19 Thread phirschybar
http://www.google.com/coop/cse?cx=006850030468302103399%3Amqxv78bdfdo On Mar 19, 12:40 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: https://trac.cakephp.org/ticket/1795 Comino soon... -MI --- Remember, smart coders

Re: CakePHP Session expiring problems...

2007-03-19 Thread Andre
I've made a test. I've set the security level to 'medium', and set the CAKE_SESSION_TIMEOUT to 1, so that the session should expire after 100 seconds. After 100 seconds $this-Session-read('User') returns nothing (I've tried to print its value), and, in reply to your question, nope, my cookies

Re: CakePHP Session expiring problems...

2007-03-19 Thread John David Anderson (_psychic_)
On Mar 19, 2007, at 1:54 PM, Andre wrote: I've made a test. I've set the security level to 'medium', and set the CAKE_SESSION_TIMEOUT to 1, so that the session should expire after 100 seconds. After 100 seconds $this-Session-read('User') returns nothing (I've tried to print its value),

Re: CakePHP Session expiring problems...

2007-03-19 Thread majna
I think tehre is a bug when session is set to database. expired sessions remains in db. cake 1.1.13.4450 can one confirm this? On Mar 19, 9:08 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Mar 19, 2007, at 1:54 PM, Andre wrote: I've made a test. I've set the security

Re: CakePHP Session expiring problems...

2007-03-19 Thread Chris Hartjes
On 3/19/07, majna [EMAIL PROTECTED] wrote: I think tehre is a bug when session is set to database. expired sessions remains in db. cake 1.1.13.4450 As someone who has used sessions in a database, I don't think that necessarily means that the session is still live. A custom session handler

Group , Permission to edit table

2007-03-19 Thread cc96ai
we have 3 different groups - User - Salesman - Admin In product table, - User can view the product info - Salesman can update/edit some (not all) fields - Admin can add/delete/edit in this scenario, should I create action for all of them in product controller, - user_view - salesman_view -

Re: Group , Permission to edit table

2007-03-19 Thread Langdon Stevenson
Hi cc96ai in this scenario, should I create action for all of them in product controller, - user_view - salesman_view - salesman_edit - admin_view - admin_edit - admin_delete - admin_add and also create 7 View page (thml) ? OR there has better solution to do this ? Have a look

Re: CakePHP Session expiring problems...

2007-03-19 Thread Grant Cox
Do you mind expanding on which framework / language allows you to have sessions automatically expire when the browser is closed? Do you just mean that the session has a very long server side timeout, and by closing the browser your own client just forgets its cookie (which really hasn't closed

How to instantiate a model

2007-03-19 Thread rtconner
Hello, I am writing a custom auth component (cake 1.2). I am doign a find $UserModel-find(), which works fine. But I would like to create an UserModel instance with the data from that find. Or possible alter the find so that it (or some other method) creates a UserModel instance with the needed

Re: newbie question, populate drop down box from other parent table

2007-03-19 Thread sixlaneve
Hi... sorry... I am a bit thick and I have a problem with this dropdown. It works OK, just in the dropdown it shows only the category ID and not the category name any idea? (I did exactly as cc96i post) :F --~--~-~--~~~---~--~~ You received this message

Re: about 2 db link

2007-03-19 Thread Grant Cox
Make sure each database connection has a different username and password if using MySQL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: How to instantiate a model

2007-03-19 Thread Grant Cox
How is a class instance going to help you here? Why not just store the result of the find in a variable, and use that the second time? However, it is probably a moot point - both cake and mysql will cache query results, so you will probably find that second query (if run at all) will take 1ms.

Re: Showcase: inbeatstore.com using Cake.

2007-03-19 Thread Mikee Freedom
looks good man!! well done. cheers, mikee On 24/02/07, Tazz [EMAIL PROTECTED] wrote: Who ever is interested. I completed my first site using cake. It's for a local record store here in Montreal. www.inbeatstore.com Cake Version: 1.1.13.4450 Additional Components: - ob_Auth for login

Re: How to instantiate a model

2007-03-19 Thread rtconner
Two different queries... same result.. caching does not help on this one. Well, what is the point of having all of this nice Model Class code written if I'm not going to use it? Set/Get, Associations, Finds, all sorts of Nifty tools I should like to use when needed.

OthAuth - Login link from email?

2007-03-19 Thread Bootstrapper
How can you construct a link from an email that automatically logs the user in to a cake site and links to the right action? I'm sending update emails to users, and if they want to do anything with their account, I want them to be able to access the relevant page directly with one click on a

License of CakePHP documentation

2007-03-19 Thread Chris Lamb
Hi cake-php, What is the license of the CakePHP manual? The index.html says: Copyright © 2006 Cake Software Foundation Inc. This work is licensed under the NEED TO CHOOSE LICENSE; you can see the full terms of the license here where here is a link to http://cakephp.org. Can anyone

Re: How to instantiate a model

2007-03-19 Thread John David Anderson (_psychic_)
On Mar 19, 2007, at 4:55 PM, rtconner wrote: Two different queries... same result.. caching does not help on this one. Well, what is the point of having all of this nice Model Class code written if I'm not going to use it? Set/Get, Associations, Finds, all sorts of Nifty tools I should

Re: How to instantiate a model

2007-03-19 Thread rtconner
John, Really?? I doubt you do need more information... but I'll play along. The following two selects are summarized versions of what cakephp creates UserModel - find() generates: SELECT * FROM users WHERE session_hash='thisisanobscurestringwhichcannotbeguessed'; Username comes from the

Re: How to instantiate a model

2007-03-19 Thread rtconner
My typing skills suck. Sorry about the grammar errors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: How to instantiate a model

2007-03-19 Thread nate
On Mar 19, 7:09 pm, rtconner [EMAIL PROTECTED] wrote: John, Really?? I doubt you do need more information... but I'll play along. rtconnor: John has been providing support on this mailing list pretty much since it's inception. If he didn't need more information, he wouldn't have asked for it.

Validate a field against 2 rules in 1.2?

2007-03-19 Thread Penfold
Hi all, I have been trying to set several validation rules for a field without much success, as the second rule always overwrites the fist. i have seen a few examples of multi rule validation but they are for 1.1 and all the info about 1.2 is single rule. can anyone help?

Re: How to instantiate a model

2007-03-19 Thread Grant Cox
rtconnor: I still don't see a need for a model instance here. Your first query, User-find(), will return the User data (as an array), with appropriate associations loaded. Your second query, User-read, will return User data (as an array), with appropriate associations loaded. Instead, try $user

Re: How to instantiate a model

2007-03-19 Thread rtconner
Nate, John... I don't doubt his or anyone else's expertise around here. From my viewings and usage of Cake, the code is amazingly written, and the help around here has been about as good as I could hope for. No complaints from me. Yes I know everyone supports for free. I try to answer what

Re: CakePHP Session expiring problems...

2007-03-19 Thread bernardo
On Mar 19, 7:39 pm, Grant Cox [EMAIL PROTECTED] wrote: Do you mind expanding on which framework / language allows you to have sessions automatically expire when the browser is closed? Do you just mean that the session has a very long server side timeout, and by closing the browser your own

Re: Menu element

2007-03-19 Thread stevenoone
I've added this code to my app_controller and changed it to reflect my data model (my table is called controls instead of categories). Now I get the following errors on every page: Notice: Undefined property: AppController::$Control in /Library/ WebServer/Documents/serials/app/app_controller.php

Re: Suggestions on user authentication?

2007-03-19 Thread BlenderStyle
This won't answer your question (pros/cons of dAuth, obAuth, and othAuth), but when I checked out othAuth and obAuth (haven't looked at dAuth), I decided I would just write my own, because they either didn't do what I wanted, or I didn't like how they did it. The manual entry at

Re: Suggestions on user authentication?

2007-03-19 Thread rtconner
I also ended up writing my own. I would wager given the features you want, you will probably be writing your own Auth system also. It seems Cake lacks a standard Auth system. On the bright side, at least Cake is set up so that it comes out relatively quickly. They are working on making something

Navigation element

2007-03-19 Thread stevenoone
I'm trying to create a dynamic reusable navigation element that I can call where I need it, including from static pages. My menu items are stored in a table called controls with columns for name, path, id and display_order. I'd like to do this the correct cakePHP way instead of writing a verbose

Re: Navigation element

2007-03-19 Thread rtconner
I'd say, likely you'll create a Model called Control And to get the list of menu items, use either the methods find() or findAll() to get data from the the Control Model instance. Explaining more than that would not help you.. make sure if you have not, you have run through the Blog Tutorial,

Re: Navigation element

2007-03-19 Thread gwoo
This has come up a lot lately for some reason. I guess because there are not enough examples. Personally, I would setup and element. Lets calll it /app/views/ elements/menu.thtml add to this: $controls = $this-requestAction('controls/index'); foreach($controls as $control) { //do whatever }

Re: Showcase: inbeatstore.com using Cake.

2007-03-19 Thread BlenderStyle
I really like the selections on the left side - that's snazy. The design is original. However, I couldn't find an About Us page (I wasn't 100% sure what the site was), and I couldn't figure out how to buy stuff online. Is that an option? Overall, good stuff. On Feb 24, 1:15 am, Tazz [EMAIL

GWT w/ CakePHP

2007-03-19 Thread Bryan
Hello all, Anyone had any luck using GWT with CakePHP? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

cakePHP with Xoops???

2007-03-19 Thread Saganxis
Has anybody tried to integrate cakePHP with Xoops? If not, can anybody help me or give a suggestion to integrate these two systems?? Thanks Saganxis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake

Re: Updated AppModel::expects() function for specifying which models should be returned

2007-03-19 Thread Mikee Freedom
Mariano - you're a legend! On 13/03/07, Mariano Iglesias [EMAIL PROTECTED] wrote: Ok after fixing that issue on the bakery the article has been updated: http://bakery.cakephp.org/articles/view/185 -MI --- Remember,

Re: Navigation element

2007-03-19 Thread stevenoone
I tried this solution and whaddya know: if worked! here's my code. //invoke menu element ?php echo $this-renderElement('menu'); ? //menu.thtml ul ?php $controls = $this-requestAction('controls/navindex'); foreach($controls as $control) { print li;

Re: cakePHP with Xoops???

2007-03-19 Thread Dr. Tarique Sani
On 3/20/07, Saganxis [EMAIL PROTECTED] wrote: Has anybody tried to integrate cakePHP with Xoops? If not, can anybody help me or give a suggestion to integrate these two systems?? Take a look at JAKE and DRAKE modules for Joomla and Drupal which let you use CakePHP apps withing the