End tag for meta omitted, but OMITTAG NO was specified..Help please..

2014-07-04 Thread Jessica
Hi, I have been trying to fix several errors like this one below after validating my site through w3c. I am trying to take care of these errors myself, as a newbie to PHPCake. I tried adding / after 1252, but it did not solve my problem. Any ideas on how to fix? Thanks! Jessica - *Line 4

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-24 Thread Zero Sony
Hi all, Finaly, i found the solutions. I made a big mistake in my Form. I write username and passwordinstead of username and password. Cake took the space after username and password. Thx all for your help. =) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread José Lorenzo
Can you share your code via gist.github.com instead? On Wednesday, June 18, 2014 5:39:02 PM UTC+2, Zero Sony wrote: Hi all, I use cakephp 2.5.1 and my $this-Auth-login() does not work. It return me false each time. Maybe if someone can say me why , i ll be very gratefull ^^ I m on

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
https://gist.github.com/0-Sony/3c052a832687e8dbb4d7 Thx for your help! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread euromark
Mind your casing 'Authenticate' = 'form' Compare this with what is documented: http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#configuring-authentication-handlers mark Am Donnerstag, 19. Juni 2014 15:32:53 UTC+2 schrieb Zero Sony:

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread 0-SonY
I have just edited it. But it's still not work. T_T 2014-06-19 18:48 GMT+02:00 euromark dereurom...@gmail.com: Mind your casing 'Authenticate' = 'form' Compare this with what is documented:

Re: My $this-Auth-login() does not work, any help please? :) Cakephp 2.5.1

2014-06-19 Thread Zero Sony
Thx for your help. I have just edited it. But it's still not work T_T https://gist.github.com/0-Sony/3c052a832687e8dbb4d7 Le jeudi 19 juin 2014 18:48:05 UTC+2, euromark a écrit : Mind your casing 'Authenticate' = 'form' Compare this with what is documented:

Re: Help please with Guestflo widget

2012-12-28 Thread mrfugimoto
Hi @jsundquist. This is my rootappviews folder contents C:\xampp\htdocs\divinghorse\app\views C:\xampp\htdocs\divinghorse\app\views\administrators C:\xampp\htdocs\divinghorse\app\views\categories C:\xampp\htdocs\divinghorse\app\views\elements C:\xampp\htdocs\divinghorse\app\views\errors

Re: Help please with Guestflo widget

2012-12-28 Thread Jonathan Sundquist
So your pasting html into a tinymxe editor which Will convert a into lt; and a gt;. If you are trying to add this static widget to the events page you Will need to modify the ctp file within the /app/views/events directory. Possibly an index.ctp file. I would suggest checking out the docs for

Re: Help please with Guestflo widget

2012-12-28 Thread mrfugimoto
Hi @jsundquist, it's cake version 1.3Old. I have read through everything I think there is in the cookbooks. It seems not even the developers of cakePHP know how to get the widget to work. It's not a knock against the developers. I just don't see any references to adding scripts in their

Re: Help please with Guestflo widget

2012-12-28 Thread Jonathan Sundquist
This really isn't a cakephp problem. Someone built a cms on top of cakephp and you are relaying heavily on that. In order to add this new, from what I can understand from the initial post, static widget you will need to modify one of the view files. This doesn't sound like some thing you will

Re: Help please with Guestflo widget

2012-12-28 Thread mrfugimoto
If you don't mind and would like to have a look, I would like to email you directly. What address would you like for me to email to? Thank you On Friday, December 28, 2012 11:18:11 AM UTC-5, jsundquist wrote: This really isn't a cakephp problem. Someone built a cms on top of cakephp and

Re: Help please with Guestflo widget

2012-12-28 Thread lowpass
In app\views\events there is probably a file named index.ctp. Open that in an editor. There should be some PHP code that iterates over an array of data to create listings for the events which are stored in the DB. Find a place somewhere within this template to paste the widget code. Next, go to

Re: Help please with Guestflo widget

2012-12-28 Thread mrfugimoto
nevermind I see your email address is in the autonotification. On Friday, December 28, 2012 12:54:43 PM UTC-5, mrfugimoto wrote: If you don't mind and would like to have a look, I would like to email you directly. What address would you like for me to email to? Thank you On Friday,

Re: Help please with Guestflo widget

2012-12-28 Thread mrfugimoto
Thank you @Cricket. With the assistance of @jlundquist, he was able to help get me situated. Everything is working, everybody is happy. Essentially the site I had to add the widget to is a complete train wreck. jlundquist created an entirely new page with the widget and I put a link on the

Help please with Guestflo widget

2012-12-27 Thread mrfugimoto
Hi Please delete if this shows up twice. I posted in the old cakephp Google Groups but nothing showed up. I clicked new cakephp Google group, and still didn't see anything. Trying again... Hi I am extremely unfamiliar with cakephp framework. I work for a web development company who provide

Re: Help please with Guestflo widget

2012-12-27 Thread lowpass
Is this Guestflo widget meant to replace the existing Events code? Does it load HTML from some other site? If that's the case, it probably shouldn't be added through the database. Rather, the existing events code could be removed, and the index.ctp template changed to just include the widget code,

Re: Help please with Guestflo widget

2012-12-27 Thread mrfugimoto
Hi @cricket. Thank you very much for reply. Unfortunately I am very unfamiliar with cakePHP. Of our 300 seo customers. This particular one is the only one who uses this script. The business owner, (our customer) just started using guestflo, this site http://guestflo.com/ to create promotional

Re: Help please with Guestflo widget

2012-12-27 Thread Jonathan Sundquist
What is Grr Cms that they are using? Cakephp is just a framework in itself. It might help to understand this admin panel you speak of. Honestly it sounds to me like you need to modify the layout file which is usually with app/Views On Dec 27, 2012 7:37 PM, mrfugimoto r...@nhlfightclub.com wrote:

Help please with Guestflo widget

2012-12-27 Thread mrfugimoto
Hi I am extremely unfamiliar with cakephp framework. I work for a web development company who provide SEO support to customers. We inherited a site which is cakephp 1.3, (I believe an old version). We have an Our Events page and the customer asked me to add a widget This is the widget below. I've

Re: beginner In CakePHP . HELP PLEASE

2012-02-20 Thread phpMagpie
If you are new to CakePHP then you need to read through the book a couple of times before jumping into a project. Bake some seperate projects and look at the code produced, if you're having problems with basic CRUD functions then they are all done for you when you bake. -- Our newest site

beginner In CakePHP . HELP PLEASE

2012-02-17 Thread kalai
HI to all, I am a beginner in CakePHP. I would like like to get help in my coding. i am currently creating a directory using CakePHP. the problem i am facing 1)when i click edit it is not redirecting to Edit,it just displaying the Session message say the post is saved 2) when ever i click add

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
You need to show your code Sounds like your missing parts of an if-statement in the edit action - S On 17 Feb 2012 17:59, kalai mekin...@gmail.com wrote: HI to all, I am a beginner in CakePHP. I would like like to get help in my coding. i am currently creating a directory using CakePHP.

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread kalai
Hi sam, i have building , which has to be edit, delete, add. here is the Model of Building: ?php class Building extends AppModel { var $name = 'Building'; //The Associations below have been created with all possible keys, those that are not needed can be removed var

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
@kalai you need to check that $this-data is not empty when adding a building been a while since I used 1.3 but I just baked a project after updating my base of 1.3 I put you code in first without validation in the model (my view were baked too) I have not trouble editing buildings or

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Kalaiarasan Eswaramoorthy
Thank you Sam, for your kind reply building is one of the functionality, like Building there are Department,People,User,Group..etc.. I edited add function but still it has some other issues pooping up.. if you don't mind i would send my entire code and my table structure.? can you help me please?

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread kalai
Hi Sam Thanks for your kind Reply. i changed the edit function still i have that issue.. i thought better understanding of my functionality will help you better to help me.. If don't mind i would send my entire code and my table structure, so that i can get exactly what i whant can you help me in

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Sam Sherlock
Building there are Department,People,User,Group..etc.. I was hoping to see the sql and the problem model controller with the code being in bin.cakephp.org or github gist have you got debug on in your app? have you got debug_kit? its a must really when you get an isssue with some controller

Re: beginner In CakePHP . HELP PLEASE

2012-02-17 Thread Kalaiarasan Eswaramoorthy
Hi Thanks, first of all i am starting to edit already existing code developed in 1.3 version.. i added some actions in it , as i am new to cakePHP i just followed the tutorial... in this i am attaching the entire code. so please help to figure it out... please find the attachment regards Kalai

setting up cakephp HELP please

2011-03-22 Thread Robert Bodley
Hi everyone im new to cake and i set up cake with all the thing required and that all right (i watched a few youtube videos) but when i put a bit of php like ?php echo hello world; ? and save it as a test.ctp in the folder views it always comes up with this error when i try and view it on the

setting up cakephp HELP please

2011-03-22 Thread Robert Bodley
Hi everyone im new to cake and i set up cake with all the thing required and that all right (i watched a few youtube videos) but when i put a bit of php like ?php echo hello world; ? and save it as a test.ctp in the folder views it always comes up with this error when i try and view it on the

Re: setting up cakephp HELP please

2011-03-22 Thread Tilen Majerle
http://book.cakephp.org/view/898/A-Typical-CakePHP-Request -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/22 Robert Bodley borisbod...@gmail.com Hi everyone im new to cake and i set up cake with all the thing required and that all right (i watched a few youtube videos) but when i

Re: Urgent Help--Please

2011-02-21 Thread Tapan Kumar Thapa
My find fields array is already having my new date In first parameter however it still comes in last. Pls suggest if you have something else in your mind. Regards Tapan Thapa India Sent from my iPhone On Feb 20, 2011, at 9:21 PM, John Andersen j.andersen...@gmail.com wrote: This is

Urgent Help--Please

2011-02-20 Thread Tapan Kumar Thapa
Hello Community, I have an export function in my controller. function export() { $this-layout = ''; $startdate = $this-Session-read('startdate'); $enddate = $this-Session-read('enddate'); $this-set('Export', $this-Incoming-find('all', array(

Re: Urgent Help--Please

2011-02-20 Thread John Andersen
Presentation of the data, your date and time fields, should be done in the view, not in the controller, so just move the formatting to the view. Would that be an acceptable solution for you? Enjoy, John On Feb 20, 2:58 pm, Tapan Kumar Thapa tapan.th...@hindustantimes.com wrote: Hello

Re: Urgent Help--Please

2011-02-20 Thread Tapan Kumar Thapa
Unfortunately no(:- I have an export csv option via a html link and i am not presenting this data to my view. Please suggest if this can be achieved in controller itself. Regards Tapan Thapa India On Sun, Feb 20, 2011 at 8:08 PM, John Andersen j.andersen...@gmail.comwrote: Presentation

Re: Urgent Help--Please

2011-02-20 Thread John Andersen
Please show us how the view code looks like, maybe we can suggest something based on that. If you can't then you may be able to use a virtual field for this, look at the CakePHP book at: http://book.cakephp.org/view/1608/Virtual-fields Enjoy, John On Feb 20, 3:45 pm, Tapan Kumar Thapa

Re: Urgent Help--Please

2011-02-20 Thread Tapan Kumar Thapa
Thanks for your suggestion. I have implemented this in my model. var $virtualFields = array( 'newdate' = 'DATE_FORMAT(Incoming.date, %d-%b-%y)' ); It works as charm however now i have got another problem. now my new date is coming in last like this. SELECT `Incoming`.`time`,

Re: Urgent Help--Please

2011-02-20 Thread John Andersen
This is speculation only, but maybe define your field parameter in the find statement, so that the newdate comes first! Enjoy, John On Feb 20, 4:42 pm, Tapan Kumar Thapa tapan.th...@hindustantimes.com wrote: Thanks for your suggestion. I have implemented this in my model. var

Re: Urgent Help--Please

2011-02-20 Thread euromark
john is still right, though the data should be finalized in the view this way you can customize it better simply use a csv layout (settings headers) which uses the custom csv view you generate (using a csv helper). On 20 Feb., 16:51, John Andersen j.andersen...@gmail.com wrote: This is

Re: Clueless...Help please

2011-01-14 Thread javier0051
Hi AD7 I actually downloaded the whole site, without leaving behind the old folders, I mean the folder and file layout is exactly the same. I'm not getting paid to move the site but I usually try to be helpful to customers and in this case it's a friend's site and I don't want to leave him stuck

Re: Clueless...Help please

2011-01-13 Thread AD7six
On Jan 12, 6:03 pm, javier0051 javier.ange...@gmail.com wrote: Thank you all for answering. I really appreciate it. My main business is hosting but I also do PHP coding but never did anything with cake. As I saw the error, as Ryan stated, it's obvious that there's something wrong with

Re: Clueless...Help please

2011-01-12 Thread javier0051
Thank you all for answering. I really appreciate it. My main business is hosting but I also do PHP coding but never did anything with cake. As I saw the error, as Ryan stated, it's obvious that there's something wrong with that sql query. The weird thing is that the site worked well on other box

Re: Clueless...Help please

2011-01-11 Thread javier0051
Thanks for replying Tarique. Actually I don't get any errors, the app just doesn't seem to find the contents that were actually visible on the site mounted on the old server. The contents are actually stored in the db... The URL is http://www.acepweb.org.ar The main page is totally visible but

Re: Clueless...Help please

2011-01-11 Thread javier0051
Alright... I set the debug mode to 1 under config/core.php... There's indeed an error (thoug the site is setup just as in the old machine). This is what I'm getting:

Re: Clueless...Help please

2011-01-11 Thread Ryan Schmidt
On Jan 11, 2011, at 07:10, javier0051 wrote: Alright... I set the debug mode to 1 under config/core.php... There's indeed an error (thoug the site is setup just as in the old machine). This is what I'm getting:

Re: Clueless...Help please

2011-01-11 Thread AD7six
On Jan 11, 3:37 pm, Ryan Schmidt google-2...@ryandesign.com wrote: On Jan 11, 2011, at 07:10, javier0051 wrote: Code | Context $sql       =       SELECT COUNT(*) AS `count` FROM `articles` AS `Article` LEFT JOIN `categories` AS `Category` ON (`Article`.`category_id` =

Re: Clueless...Help please

2011-01-11 Thread Devario Johnson
that error usually happens when a call to a find query (in this case a paginate query) is written wrong. That seems like an app error not hosting. On Jan 11, 9:07 am, AD7six andydawso...@gmail.com wrote: On Jan 11, 3:37 pm, Ryan Schmidt google-2...@ryandesign.com wrote: On Jan 11, 2011, at

Re: Clueless...Help please

2011-01-11 Thread Brian Mckphee
I agree with the last few posters. You may need to tell your client to look at their code. Are you merely a hosting provider or are you a coder? On Jan 10, 8:13 am, javier0051 javier.ange...@gmail.com wrote: Hi I am a completely newbie to cake php. A new customer has a site developed with

Clueless...Help please

2011-01-10 Thread javier0051
Hi I am a completely newbie to cake php. A new customer has a site developed with cake php and we recently moved the site to one of our boxes but we haven't been able to show all the page's content. No errors, the news articles and other stuff are actually in the database BUT no contents are

Re: Clueless...Help please

2011-01-10 Thread Dr. Tarique Sani
Can't seem to reach the URL you have mentioned but have you tried setting the Debug on? Probably you are not seeing any errors because Debug is set to 0 HTH Tarique On Mon, Jan 10, 2011 at 7:43 PM, javier0051 javier.ange...@gmail.com wrote: Hi I am a completely newbie to cake php. A new

Re: Clueless...Help please

2011-01-10 Thread Dr. Loboto
Check error logs. And/or turn debug on and go to page to see actual errors. On Jan 10, 8:13 pm, javier0051 javier.ange...@gmail.com wrote: Hi I am a completely newbie to cake php. A new customer has a site developed with cake php and we recently moved the site to one of our boxes but we

Re: Clueless...Help please

2011-01-10 Thread Ryan Schmidt
On Jan 10, 2011, at 08:13, javier0051 wrote: No errors, the news articles and other stuff are actually in the database BUT no contents are displayed. (site's main page: www.acepweb.org.ar Undisplayed contents example url (http://www.acepweb.org.ar/c/noticias/ ultimas-noticias) The problem

Re: Problem with models....help please!!!

2010-06-07 Thread dtemes
I think you have a typo: var $actAs = array('Containable'); should be var $actsAs = array('Containable'); you forgot the 's' On 6 jun, 21:09, Christopher Hanson phpcoder2...@gmail.com wrote: hey, i tried the following ?php class Invoice extends AppModel {      var $name = 'Invoice';

Re: Problem with models....help please!!!

2010-06-07 Thread Christopher Hanson
On 06/06/2010 20:18, Jens Ulf Dittrich wrote: I guess you have no Class InvoiceRows in your Models. I think your Invoice AppModel should be something like: ... var $hasMany = array( 'InvoiceRows' = array( // I guess that is ok for the name 'className' = 'Invoice', // -- this one

Problem with models....help please!!!

2010-06-06 Thread phpcoder2...@googlemail.com
Hey guys, new here so please be gentle ;) lol here is my issue i need help getting my head around. I have the following models invoice.php client.php country.php client has country_id in db which relates to id in the country table and pulls the correct country. this pulls out by using belongsTo

Re: Problem with models....help please!!!

2010-06-06 Thread John Andersen
There is nothing wrong with your associations/relationships between the Invoice, Client and Country models. You just have to read up on the recursive attribute in the model, see: http://book.cakephp.org/view/1057/Model-Attributes#recursive-1063 That should give you a hint :) Next I suggest you

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
On 06/06/2010 18:54, John Andersen wrote: There is nothing wrong with your associations/relationships between the Invoice, Client and Country models. You just have to read up on the recursive attribute in the model, see: http://book.cakephp.org/view/1057/Model-Attributes#recursive-1063 That

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
also i have been reading on containable and i just get SQL errors when i try to use either $this-Model-contain() or in the params for find, any ideas whats gong wrong? -- Best Regards Christopher Hanson Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Problem with models....help please!!!

2010-06-06 Thread John Andersen
Have you added the Containable behavior to your model(s) or even better to the AppModel? Like: [code] var $actsAs = array('Containable'); [/code] Only after doing that, can you use it! If you have done it, then please show the code of your find statement including the contain conditions.. Enjoy,

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
On 06/06/2010 19:51, John Andersen wrote: Have you added the Containable behavior to your model(s) or even better to the AppModel? Like: [code] var $actsAs = array('Containable'); [/code] Only after doing that, can you use it! If you have done it, then please show the code of your find

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
hey, i tried the following ?php class Invoice extends AppModel { var $name = 'Invoice'; var $actAs = array('Containable'); var $hasMany = array( 'InvoiceRows' = array( 'className' = 'InvoiceRows', 'foreignKey' = 'invoice_id', 'order' =

Re: Problem with models....help please!!!

2010-06-06 Thread John Andersen
First, to make sure that your association between Invoice and InvoiceRow does not affect the issue solving, please comment it out in your Invoice model! Taking your example, finding invoices from within the Invoices controller, then you must specify the Containable conditions as: [code]

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
thanks John, tried that but still doesnt fetch any country data, im really not sure where the problem is :( any other suggestions? thanks -- Best Regards Christopher Hanson Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: Problem with models....help please!!!

2010-06-06 Thread Christopher Hanson
On 06/06/2010 20:28, John Andersen wrote: First, to make sure that your association between Invoice and InvoiceRow does not affect the issue solving, please comment it out in your Invoice model! Taking your example, finding invoices from within the Invoices controller, then you must specify the

Re: Problem with models....help please!!!

2010-06-06 Thread Jens Ulf Dittrich
I guess you have no Class InvoiceRows in your Models. I think your Invoice AppModel should be something like: ... var $hasMany = array( 'InvoiceRows' = array( // I guess that is ok for the name 'className' = 'Invoice', // -- this one has to be a name of an actually existing

Help please.... Postgres find() returns different array format as Mysql find()

2010-04-19 Thread Adam
Do I just have to re-write my application if I'm using Postgres? I thought I could switch databases and cake would handle it for me? The array format for associated tables is different in Postgres than it is in Mysql Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: [HELP PLEASE] Question: HABTM

2010-01-28 Thread Alexandru Ciobanu
On 1/27/2010 2:06 PM, Douglas Pacheco Cardoso wrote: I have 3 tables: - Users - Locals - access locals of the system. - Permissions - Table N:M with the fields (id, user_id, local_id, _add, _read, _delete, _update) I created a page for managing permissions, but I have a problem,

Re: [HELP PLEASE] Question: HABTM

2010-01-28 Thread Douglas Pacheco Cardoso
Thank you Alexandru Ciobanu...I'll test... Douglas Pacheco Cardoso 2010/1/28 Alexandru Ciobanu ics.cake...@gmail.com On 1/27/2010 2:06 PM, Douglas Pacheco Cardoso wrote: I have 3 tables: - Users - Locals - access locals of the system. - Permissions - Table N:M with the fields (id,

[HELP PLEASE] Question: HABTM

2010-01-27 Thread Douglas Pacheco Cardoso
Hi, I have a question about HABTM. I'm making a access permission system itself, because I don't need the complexity of the ACL. I have 3 tables: - Users - Locals - access locals of the system. - Permissions - Table N:M with the fields (id, user_id, local_id, _add, _read, _delete, _update)

Re: Order results by related model totals (help please)

2009-12-05 Thread nurvzy
Well, I can think of a few ways to achieve the desired result you're looking for. First of all, you should be doing that 'last_job' key creation in your Project model's afterFind($results) callback if you're going to go down the array manipulation route. In regards to pagination, you could do it

Order results by related model totals (help please)

2009-12-04 Thread otherphil
hi, this is my first post. I am new to cakePHP (and databases in general). I have built a little application with a table called Projects and a table called Jobs. a project has many Jobs. a job has (amongst others) a 'hours' field and a 'date' field. I have an index page for the projects which

Help Please

2009-09-18 Thread Simon
is sombody here correct me here please how can i do this if a users group is admin i did it with session but this dosent work any other way ?php if ($session-read('Auth.User.group') == 'Admin') { echo'div class=author'; }else{ echo'div class=nonauthor; }? ?php

Router Help please !

2009-07-31 Thread DatacenterHellas
I use this for router Router::connect('/:language/:controller/:action/*',array(),array ('language'='[a-z]{3}')); and when I click on this link $html-link('Greek',array('language'='gre')); The returned URL is http://www.mydomain.ext/controller/action instead of

Re: Router Help please !

2009-07-31 Thread DatacenterHellas
There is no one who can help me ? ? ? --~--~-~--~~~---~--~~ 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

Re: Tabs in Layout... Help Please.

2009-01-16 Thread Martin Westin
@Andrew The reason the li.active method is so widely used is that is works for CMSes and other dynamic applications where the contents of the menu changes. The technique you describe uses hard-coded menu items which I very rarely find to be sufficient for the applications I work on. On Jan

Re: Tabs in Layout... Help Please.

2009-01-15 Thread ache...@gmail.com
Nurvzy, Yes! This is the first time I've written anything and then been able to link to it. I don't like the idea of using your server to process this, I think it's a task much better suited to CSS I wrote about it here if you want to take a look http://www.lifeiscake.com/posts/view/css-menus

Re: Tabs in Layout... Help Please.

2009-01-15 Thread nurvzy
@Andrew: Thank you very much for the link to your great article; its well written and much appreciated. Thank you all for your quick responses, help and advice. Very much appreciated! Nick On Jan 15, 2:05 pm, ache...@gmail.com ache...@gmail.com wrote: Nurvzy, Yes! This is the first time

Re: Tabs in Layout... Help Please.

2009-01-14 Thread Martin Westin
One technique I have used where I want it to be as automatic as possible (but possibly not compatible with any routing scenario) is this: My main menu consists of either plugins or controllers (some of each kind.) So I use this to figure out what the current plugin or top- level controller is:

Re: Tabs in Layout... Help Please.

2009-01-14 Thread nurvzy
A That's mighty clever too Martin, thanks for sharing. I have a static menu but I like the idea of not having to pass anything to the view and the layout figuring out where it is on its own. My problem is I'm using the same pages controller to display 3 of my 6 tabs with static content, so

Re: Tabs in Layout... Help Please.

2009-01-14 Thread teknoid
If I understand this right, you are looking to set an active tab, based on the view you are currently in... It can be done easily from the view itself, i.e. in view_one.ctp: $this-set('tabOne', true); (which is now going to be available in your layout). Therefore, in the layout you could do:

Re: Tabs in Layout... Help Please.

2009-01-14 Thread Kappa
Why not using for_layout variables? Just set into your controller action a selectedtab_for_layout variable and inside the layout (yes i said layout, not view) you can access it. On Jan 14, 5:42 pm, teknoid teknoid.cake...@gmail.com wrote: If I understand this right, you are looking to set an

Tabs in Layout... Help Please.

2009-01-13 Thread nurvzy
Hi All, I'm new to cakephp and working through my first cake app. I'm chugging along and am now stumped as to where to put a function I've written to help decide if a navigation tab should have the id=selected assigned to the anchor tag. Basically the gist is I have a ul Navigation bar with

Re: Tabs in Layout... Help Please.

2009-01-13 Thread Miles J
This is how I do mine: // controller action function login() { $this-set('activeTab', 'login'); } // the view li?php if ($activeTab == 'login') echo ' class=selected'; ?a href=#Login/a/li li?php if ($activeTab == 'signup') echo ' class=selected'; ?a href=#Signup/a/li Also, your

Re: Tabs in Layout... Help Please.

2009-01-13 Thread nurvzy
Thank you Miles! That technique is exactly what I was looking for! Nick On Jan 13, 5:04 pm, Miles J mileswjohn...@gmail.com wrote: This is how I do mine: // controller action function login() {         $this-set('activeTab', 'login'); } // the view li?php if ($activeTab == 'login')

Re: Import Script Help Please

2008-12-26 Thread Webweave
If you put the data into the array before you do your save, Cake does the magic under the covers to figure out if the record exists already or not. When you do the save, Cake does a lookup to figure out if the request needs to be an insert or delete (assuming you have the constraints set

Re: Import Script Help Please

2008-12-25 Thread Webweave
So are you saying you're getting data posted to you somehow that isn't related to the tables you outlined? I'm not clear on whet you mean by I can't control the name of the fields coming in, but it sounds like you have the basic idea. Cake should handle the magic for you as long as you build

Re: Import Script Help Please

2008-12-25 Thread Chad Casselman
Let's see if I can explain this better. I have the models setup correctly or so I think - new to all of this. But I am getting lots of information posted from an external source so let's say field1, field2, field3, etc. etc. Fields 1-10 are customer information Fields 11-15 are product

Import Script Help Please

2008-12-23 Thread Chad Casselman
Very new to cakePHP and of course the first thing I try doesn't follow the model. I am trying to create a script which takes a lot of post variables (from 1shoppingcart exactly) and then puts them in the corresponding values in my database design. Let's say my database is: customers

Re: console help please

2008-11-21 Thread calzone
Cakebaker, at cakebaker.42dh.com, has resolved this issue for me (http://cakebaker.42dh.com/2007/05/07/writing-a-custom-cakephp-console- script/). In case anyone else runs into this same issue some day, the resolution is that my code was missing the controller initialization after the

console help please

2008-11-19 Thread calzone
Sorry if this is a likely stupid question, but I can't seem to find the answer anywhere. Searching for CakePHP console examples outside of using it for ACL and baking seems mighty thin on google. Maybe I'm overlooking something that should be obvious? The Backstory: I have cakephp doing some

Has ... relationships help please

2008-09-12 Thread soldier.coder
I am getting lost in semantics and need a guide. I'm writing an app that keeps track of grades for students in multiple courses. Depending on the type of course, there will be different categories of grades ('Lab Assignments','Oral Presentation', 'Programming Assignments', ...) and there will be

Re: Has ... relationships help please

2008-09-12 Thread David C. Zentgraf
Weights belongsTo both Categories and Courses Categories hasMany Weights Courses hasMany Weigths BelongsTo means the model that belongsTo something also has the foreign keys in itself (Weights.course_id). For hasMany THE OTHER model is supposed to have the foreign key (Courses hasMany

Models and Has... help please!

2008-09-12 Thread soldier.coder
But I guess such thinking on my part is futile. So let me lay it all out for you. My tables: courses-- this is here to provide in ID and a course name for display. course_id course_name categories -- another look up table for category names category_id

Re: Models and Has... help please!

2008-09-12 Thread David C. Zentgraf
What about replying to the answers you already received in the other threads about the very same topic instead of starting from scratch every time? Also, you'll have to find the final answer yourself, it's about the basic design of your app. You got a bunch of advise already which should

File Upload -- help please

2008-08-25 Thread Astha Shukla
Hi, Could any one please teach me,, How can I upload a file in to server folder using CakePHP (I do not want to store a file into database) for example I have a file say add.thtml in view folder that is uploading a file and I have add function in cotroller, what code should I need to write in

Re: File Upload -- help please

2008-08-25 Thread Samuel DeVore
On Mon, Aug 25, 2008 at 6:30 AM, Astha Shukla [EMAIL PROTECTED] wrote: Hi, Could any one please teach me,, How can I upload a file in to server folder using CakePHP (I do not want to store a file into database) for example I have a file say add.thtml in view folder that is uploading a file

Re: File Upload -- help please

2008-08-25 Thread Donkeybob
yea . . . this was actually asked 5 days ago. the search box is an amazing tool. . . . http://groups.google.com/group/cake-php/browse_thread/thread/e77705247cfb0d44/bb04ce1ecdc1b217#bb04ce1ecdc1b217 On Aug 25, 9:30 am, Astha Shukla [EMAIL PROTECTED] wrote: Hi, Could any one please teach me,,

Re: File Upload -- help please

2008-08-25 Thread clemos
This list is slowly becoming a STFW messages contest :) http://www.catb.org/~esr/faqs/smart-questions.html#rtfm +++ Clément On Mon, Aug 25, 2008 at 4:19 PM, Samuel DeVore [EMAIL PROTECTED] wrote: On Mon, Aug 25, 2008 at 6:30 AM, Astha Shukla [EMAIL PROTECTED] wrote: Hi, Could any one

CakePHP Setup, Need Help Please

2008-01-20 Thread longint
Hi Folks, Brand spankin' new to PHP CakePHP. Coming over from ASP.NET to explore. I'm following the Blog tutorial from the Cake site and here's what happens: 1.) Move it to the webroot. 2.) Checkout localhost and I can see the initial page (with CSS!) 3.) Change my db configuration to

  1   2   >