Re: For Some Reason My Controllers and Views Are Being Cached...

2008-12-28 Thread Parris
I solved the solution by upgrading to the newest version and clearing the tmp folder in app (well replacing it with the default in the new version of cake) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Newby: Basic file structure for website CMS

2008-12-28 Thread danwednesday
Hi, I'm brand new to php and the MVC style of development. I've read some of the cakephp documentation and it makes sense in theory, so I'm keen to push on. However, the first task I've set myself is to build a simple website and CMS for displaying and administering news articles. I have

SaveAll() with nested Models

2008-12-28 Thread Fi
Hello, SaveAll works great with the examples provided in the docs and through the majority of blogs. My Problem is that I want to Save three nested Models at once. Currently I do this with the help of transactions and some awkward validation. For example I have these Models: Test has many

Conditional find on recursive belongsTo association

2008-12-28 Thread WebbedIT
For this issue there are 3 models in use Staff Person Organisation Related as follows Staff belongsTo Person Person belongsTo Organisation I need to list Staff that match a condition in the Organisation model and am trying to do so with the following $this-paginate('Staff',

Re: Newby: Basic file structure for website CMS

2008-12-28 Thread danwednesday
Okay, I found this example here: http://www.jamesfairhurst.co.uk/posts/view/creating_an_admin_section_with_cakephp/ which talks me through how to create an admin area. It's actually pretty simple, starting by just uncommenting the admin routing line in /app/config/core.php. However, when I'm

Re: HTML 4 specific CakePHP?

2008-12-28 Thread oliver.pra...@googlemail.com
@gearvOsh - Thanks for pointing this out. I finally came to reading it all, and I now personally find that this issue is to be seen as a weakness of the CakePHP framework. I sadly do not possess the knowledge at the moment to think up a good performance friendly simple solution to solve the

Re: Newby: Basic file structure for website CMS

2008-12-28 Thread Bernardo Vieira
Have a look at prefix routing: http://book.cakephp.org/view/544/Prefix-Routing What you'll end up with is, for example: config/core.php // enable admin routing Configure::write('Routing.admin','admin'); controllers/news_controller.php NewsController { function index() { // this is

Where to place new layout page

2008-12-28 Thread mona
Can anybody tell me where to place my new layout page in cakephp so that i call in my login function to use that layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email

Re: Where to place new layout page

2008-12-28 Thread Bernardo Vieira
app/views/layouts mona wrote: Can anybody tell me where to place my new layout page in cakephp so that i call in my login function to use that layout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Small problem passing variables

2008-12-28 Thread Steppio
Hello everybody, i am totally new to Cake and am finding it quite difficult to understand all the different parts of it. At the moment i'm trying to make a three part user registration process, firstly with the username and password fields, then onto details about the user, then on to duties they

How to fetch data in a dropdown box in add action

2008-12-28 Thread mona
This is my code can anybody tell me how to fetch data in a drop down box in add action i want to display data in dropdown box and when i click on add button is save values in a database code is follows my controller is ?php class EntriesController extends AppController { var $name =

How to upload files and where to save in temp folder

2008-12-28 Thread mona
This is my code of add vies i want to upload file from this code and send file name and type in database when i click on add button if i click on add button it is displaying error array to string conversion and file data doesn't save data in database can anybody tell me how to do this h2New

Re: Where to place new layout page

2008-12-28 Thread mona
thanks for replying can u tell me how to use bake.php in cakephp 1.2 --~--~-~--~~~---~--~~ 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

Re: Problem related to dropdown box

2008-12-28 Thread Smelly_Eddie
You need to read up on the manual. On Dec 27, 7:14 am, mona poojapinj...@gmail.com wrote: It can't solve my problem i m sending you my code can you tell me where i m making mistake plz correct it if it is possible this i my entries controller  and i want data in drop down box in add and

Re: file uploading in cake php

2008-12-28 Thread Smelly_Eddie
Google upload files with CakePHP On Dec 27, 8:59 am, mona poojapinj...@gmail.com wrote: Hello mike sorry for distutbing you once again. I am sending you my file uploading problem please i need your help if you help me it will be great help for me this is my add view code please consider it

Re: Freelancer seeking CakePHP jobs

2008-12-28 Thread Smelly_Eddie
Please do not post employment related posts. This group is for support and information sharing, not to get you a job. There are numerous sites dedicated to Web Dev jobs and such. On Dec 27, 3:09 pm, 3lancer.eu kilc...@gmail.com wrote: Hi, I am seeking (remote) employment in CakePHP,

Re: the Gift of 1.2 Final

2008-12-28 Thread Troy Schmidt
Has anyone had a chance to reproduce the tests to confirm the new speed for CakePHP 1.2 final? This would be something good to combat Rasmus's old test results on RC2. I am getting tired of seeing that mentioned in blog postings still, but am not proficient enough to generate new test results.

Re: file uploading in cake php

2008-12-28 Thread mona
I tried alot but it is not working any other options --~--~-~--~~~---~--~~ 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

Re: Problem related to dropdown box

2008-12-28 Thread mona
I tired this thing but it was not workin i already send you my code plz check it and correct it if it is possible for you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Re: Small problem passing variables

2008-12-28 Thread Troy Schmidt
$this-User-getInsertID(); I don't know about the Auth component as i haven't used it alot. But that would get the last inserted ID. I would just set that variable and include it in the view for the future steps. Otherwise it looks like 'user_id' isn't set yet for user On Dec 28, 11:11 am,

Re: file uploading in cake php

2008-12-28 Thread majna
http://bin.cakephp.org/saved/23715 On Dec 28, 6:40 pm, mona poojapinj...@gmail.com wrote: I tried alot but it is not working any other options --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post

Re: HTML 4 specific CakePHP?

2008-12-28 Thread j0n4s.h4rtm...@googlemail.com
Just one question, because the thread opener has a point (XHTML and HTML4 both have their benefits as HTML5 will probably have but XHTML2 seems not going to have): Is there a CakePHP global way to define output type (XHTML 1.0, 1.1 HTML 4, all 3 strict, transitional, frameset) - if not, it is

Newby: Undefined index error

2008-12-28 Thread danwednesday
Hi, Following on from an earlier post, I'm receiving an error when trying to log in to a basic password protected admin system. The error is as follows: Notice (8): Undefined index: User [APP\controllers \users_controller.php, line 10] Code if(!empty($this-data)) {

usage of mapActions()

2008-12-28 Thread Arak Tai'Roth
So I have this problem. I have a controller called BuildsController, I have multiple edit pages within this controller as I have to edit multiple data through it, but the data comes from multiple models, not just the Build model. Anyways, so I have an edit() function, but also an

Re: HTML 4 specific CakePHP?

2008-12-28 Thread gearvOsh
I have not found any option or setting for using HTML or XHTML. All I have seen is that you can set the Doctype, but even if you set the Doctype as HTML, all the tags are in XHTML. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Newby: Undefined index error

2008-12-28 Thread gearvOsh
You need to be using the User model. Make sure this is in your controller: $uses = array('User'); Perhaps look at these two links also: http://book.cakephp.org/view/171/Access-Control-Lists http://book.cakephp.org/view/172/Authentication --~--~-~--~~~---~--~~ You

Odd Auth behaviour in IE7 (Internet Explorer)

2008-12-28 Thread Yves Latour
Hi I am using the Auth component and I did not notice this behaviour yet. Maybe it came with an Microsoft Update (?). The problem is in IE7 (and IE6, but there are other problems, there). In Chrome and FireFox everything works. Description of the problem: I am trying to login, sometimes it

Re: Odd Auth behaviour in IE7 (Internet Explorer)

2008-12-28 Thread Yves Latour
I have even noticed something odder: if I am logged in and start refreshing the same page over and over, after the second time I can be sure to be logged out, getting the $this-Auth-authError message shown. I also noticed, i am not able to navigate, one click is ok, the next one, I am logged

Re: HTML 4 specific CakePHP?

2008-12-28 Thread Adam Royle
Is it possible that you can just overwrite the tag list with your HTML equivalents? http://bakery.cakephp.org/articles/view/overriding-specific-html-tags-before-using-helper-methods Cheers, Adam On Dec 29, 8:24 am, gearvOsh mileswjohn...@gmail.com wrote: I have not found any option or setting

Re: usage of mapActions()

2008-12-28 Thread Arak Tai'Roth
I guess I should probably note that the line I gave that I am using is in my beforeFilter function in my Builds Controller. I also tried it in the App Controller, but that didn't make a difference either. On Dec 28, 2:55 pm, Arak Tai'Roth nielsen.dus...@gmail.com wrote: So I have this problem.

Re: Upgrade to 1.2 RC4 or 1.2 Final , get a Internal Server Error

2008-12-28 Thread 斜陽照
Oh, I change filenames, but it shows the same error. On Dec 27, 8:50 am, gearvOsh mileswjohn...@gmail.com wrote: Your filename should be xxx_controller.php (no capital). If you were just typing it that way. Also why are you changing the controller before submit? This makes no sense.

Re: usage of mapActions()

2008-12-28 Thread Arak Tai'Roth
So I also looked over the api and everything that I am doing looks right to me as far as what the api is expecting to receive. However still when I click the link to take me to that action when I am logged in it just refreshes the current page and does nothing. Any help would be appreciated. On

Re: Run Queries Unrelated to Controller

2008-12-28 Thread ache...@gmail.com
There really are very few downfalls to running raw SQL other than that you have to write it by hand and people tend to do it in a poor fashion. There are lots of cases where raw SQL is by far the best way to go about pulling data but there are a few things to remember. There area few pitfalls

Re: count no of rows.

2008-12-28 Thread piyushsharmajec
Hai, Thanks for your help however i find error as unexpected T_DOUBLE_ARROW when i paste code $count = $this-Project-Message-findCount(array('Message.project_id')=$MyProjectId); Thanks Piyush -- View this message in context:

Re: Conditional find on recursive belongsTo association

2008-12-28 Thread WebbedIT
Can anyone help me with this? I've tried looking at custom pagination but that doesn't cover custom sql, just custom conditions. Been stuck on this since before xmas, would be nice to be able to move on from it. On Dec 28, 1:05 pm, WebbedIT p...@webbedit.co.uk wrote: For this issue there are