Re: GoogleApi

2010-12-23 Thread georgeman
http://bakery.cakephp.org/articles/marcferna/2010/05/27/google-maps-api-v3-helper http://bakery.cakephp.org/articles/rajibahmed/2010/11/20/cakephp_google_map_v3_helper On Dec 23, 6:26 am, Gazmend Nrecaj gazmendnre...@googlemail.com wrote: Hi, I want to use a GoogleMap in my App, has anyone

Re: HABTM Relations‏ CAKEPHP

2010-12-23 Thread georgeman
It makes a lot more sense to book the description of the book in the books table, don't you think? On Dec 23, 12:10 pm, Web Developman jhona...@gmail.com wrote: hi i need save an aditional field in join table, but don't find an complete example that showing the correct way to do. the

Re: How can I add to one table while I'm adding to another

2010-12-23 Thread georgeman
of CakePHP'. Amit Badkas PHP Applications for E-Biz:http://www.sanisoft.com On Wed, Dec 22, 2010 at 11:02 PM, georgeman confidentia...@gmail.comwrote: Thanks for the tips. I don't think SaveAll is the solution I am looking for. What I want to do is enter a list of tags separated

Comments Plugin for CakePHP

2010-12-23 Thread georgeman
I am installing the Comments Plugin from CakePHP I'm stuck at the part where it says that Need to have some sort of users or logins table that keep members personal info. This table should contain slug field. For some reason I just can't figure out this 'slug' business. To me a slug is something

Re: How can I add to one table while I'm adding to another

2010-12-22 Thread georgeman
-... this is a too old article and some code in it need to change as per latest version of CakePHP. Amit Badkas PHP Applications for E-Biz:http://www.sanisoft.com On Tue, Dec 21, 2010 at 7:32 AM, georgeman confidentia...@gmail.com wrote: Here is the scenario based on a simple blog: The model

Re: How can I add to one table while I'm adding to another

2010-12-22 Thread georgeman
/05/02/simple-tagging-... this is a too old article and some code in it need to change as per latest version of CakePHP. Amit Badkas PHP Applications for E-Biz:http://www.sanisoft.com On Tue, Dec 21, 2010 at 7:32 AM, georgeman confidentia...@gmail.com wrote: Here is the scenario based

Tagging Behavior, Tags, Taggable

2010-12-22 Thread georgeman
On Dec 22, 12:38 pm, georgeman confidentia...@gmail.com wrote: Thanks for the tips. I don't think SaveAll is the solution I am looking for. What I want to do is enter a list of tags separated by commas then save them correctly in the tags table and posts_tags table.  The 'simple tagging

adding tags

2010-12-22 Thread georgeman
If you need to add tags look at this tutorial, it's well written and it works: http://cakedc.com/cakedc/entries/view/using-the-cakedc-tags-plugin-for-cakephp Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

Re: session problem or misunderstanding.

2010-12-20 Thread georgeman
There is a Session helper and a Session component. If you want for all controllers write in app_controllers: var $components = array('Session'); On Dec 20, 2:03 am, Shinya Koizumi sh.koiz...@gmail.com wrote: For 1.2.8, How do I enabled that again? I am already using this for another control,

Re: FormHelper Problem

2010-12-20 Thread georgeman
, but if you want to define a full route, you must use url. Since I made it up, apparently. You're right. I wasn't thinking about that clearly. Sorry, georgeman. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message

How can I add to one table while I'm adding to another

2010-12-20 Thread georgeman
Here is the scenario based on a simple blog: The model for the blog is called Post. Post has the following fields: id, title, body, created, modified. There are two other related models: Tag and Comment. Tag has the following fields: id, name, created, modified. Comment has the following fields:

FormHelper Problem

2010-12-19 Thread georgeman
I built a simple contact request form using FormHelper. The form is located on 'pages/contact' and the form action is located on 'contact_requests/add'. The form handler will email the request to the address set by the administrator, and will save a copy of the request to the database. To create

Re: session problem or misunderstanding.

2010-12-19 Thread georgeman
did you try to echo var_dump($_SESSION); ? On Dec 19, 9:40 pm, cake-learner sh.koiz...@gmail.com wrote: I am trying to pass a variale with session but without success for a while. within the same controller i go $this - Session - write( 'id', 1 ); $this - Session - read( 'id' ); i gotta

simple acl controlled application tutorial

2010-12-14 Thread georgeman
I'm referring to the tutorial in the Cake manual. 11.2.4.1 Group-only ACL says: In case we want simplified per-group only permissions, we need to implement bindNode() in User model. function bindNode($user) { return array('model' = 'Group', 'foreign_key' = $user['User'] ['group_id']); }

How to publish first paragraph only

2010-12-10 Thread georgeman
I want to make an index page or blog posts and display the most recent articles as a list, with title, author, date, and also the first paragraph. The way it is done at the Bakery: http://bakery.cakephp.org/articles I've looked at Text Helper functions excerpt() and truncate() but neither seems

Time Helper to show only the date and not the time

2010-12-10 Thread georgeman
What if I want to only show the date and not the time, for example: December 10, 2010 I have a solution that works but it seems to me there must be an easier way to do, something that I overlooked. Here is my solution: ?php echo date('M j, Y',($this-Time-fromString($post['Post'] ['created'])));

HABTM

2010-10-04 Thread georgeman
I'm looking for help with associations, specifically HABTM. What if you have more than one HABTM for a model? The parser won't allow it. So what to do? The manual doesn't seem to answer this question or perhaps it does but I didn't see it. This is my setup: If anybody can point our where I am