Re: need urgent help

2011-01-18 Thread Tran Cao Thai
from where do you call to the users controller ? On Tue, Jan 18, 2011 at 6:40 PM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, i m trying to redirect the action on a controller but it is redirecting to another controller action. //users_controller.php function

Re: need urgent help

2011-01-18 Thread Ryan Schmidt
On Jan 18, 2011, at 01:40, andy_the ultimate baker wrote: i m trying to redirect the action on a controller but it is redirecting to another controller action. //users_controller.php function admin_add(){ if(!empty($this-data)){

Urgent Need@@@@@@QA Tester

2011-01-14 Thread sangeetha
Hi Friends, Hope you are doing Good!!! If anyone interested please send updated resumes to* **h...@ksolinc.net*h...@ksolinc.net My Name is Sangeetha and i am working from Ksolinc.We have an urgent requirement with our Direct client. Below is the job description. *Position : QA

Re: Hi need Help: How to log-out from Acl ?

2011-01-01 Thread John Maxim
('action' = 'logout')); ? and place it on the indexes of groups, users, posts, widgets.. But I would need to create addition of 3 more function logout() for each of the 3 controllers. (2) But the link logout is displayed even we're not logged in. Is it we need to use Access method from

Re: Hi need Help: How to log-out from Acl ?

2011-01-01 Thread John Maxim
it on the indexes of groups, users, posts, widgets.. But I would need to create addition of 3 more function logout() for each of the 3 controllers. (2) But the link logout is displayed even we're not logged in. Is it we need to use Access method from the views? as attempted

Hi need Help: How to log-out from Acl ?

2010-12-31 Thread John Maxim
Hi, I'm right here: http://book.cakephp.org/view/1552/Logout May I ask if anyone could help to point out how exactly am I to log- out now ?? I went through some comments on that page suggested to $this-Auth-allowedActions = array('logout'); What's your suggestion? Kind regards, Maxim Check

Re: Hi need Help: How to log-out from Acl ?

2010-12-31 Thread AD7six
On Dec 31, 3:01 pm, John Maxim goog...@gmail.com wrote: Hi, I'm right here:http://book.cakephp.org/view/1552/Logout May I ask if anyone could help to point out how exactly am I to log- out now ?? You access the function logout which after following the tutorial you will have created in

Re: Hi need Help: How to log-out from Acl ?

2010-12-31 Thread John Maxim
it in one single place so it can be viewed 'only' after logging into users, groups, posts, and widgets. Can it be accomplished? (1) I could do this: p?php echo $html-link('logout', array('action' = 'logout')); ? and place it on the indexes of groups, users, posts, widgets.. But I would need

Re: Hi need Help: How to log-out from Acl ?

2010-12-31 Thread Jeremy Burns | Class Outfit
$html-link('logout', array('action' = 'logout')); ? and place it on the indexes of groups, users, posts, widgets.. But I would need to create addition of 3 more function logout() for each of the 3 controllers. (2) But the link logout is displayed even we're not logged in. Is it we need to use

Model1-Model2-find(...): I need an INNER join, but where to specify? --psybear

2010-12-13 Thread psybear83
of the existence of a UserProfile. So I need to use an INNER join, but I don't know where to tell CakePHP to use INNER? I tried in the association, but didn't seem to work: var $belongsTo = array( 'User' = array( 'type' = 'inner

Does every model really need a name field? --psybear

2010-11-04 Thread psybear83
guys do, when you really don't want/need a name for a specific model? Invent some imaginary name field? Thanks Josh 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

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Jeremy Burns | Class Outfit
. However, he couldn't really tell me why's that, and I don't really find too much information about that. So maybe this isn't true (anymore)? Or if it's really the case, then what do you guys do, when you really don't want/need a name for a specific model? Invent some imaginary name field

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Almudena Garcia
You don't need that in the DB, what you need is in the model... class Job extends AppModel { var $name = 'Job'; var $useTable = 'jobs'; . They can or can't match, as you wish... Is this what you mean?? 2010/11/4 psybear83 psybea...@gmail.com Hi everybody A collegue told me some

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Joshua Muheim
Is this what you mean?? I guess not really... I have taken over an existing application where every table has a name field. So I wonder if this really is a must or not. I'm aware that every model needs a $name variable, thank you. :-) Check out the new CakePHP Questions site http://cakeqs.org

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Jeremy Burns | Class Outfit
You do not need to have either a name or title field in your table, but they have their uses. Cake can use a 'name' or 'title' field to automatically populate lists and such. Having said that, you can override it with var $displayField in your model. See: http://book.cakephp.org/view/1014

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Almudena Garcia
it's not a must, actually I don't see the point of that 2010/11/4 Joshua Muheim psybea...@gmail.com Is this what you mean?? I guess not really... I have taken over an existing application where every table has a name field. So I wonder if this really is a must or not. I'm aware that

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Joshua Muheim
OK, the point with automatically populating lists seems reasonable. Thank you, guys! On Thu, Nov 4, 2010 at 1:22 PM, Almudena Garcia garcia.fra...@gmail.com wrote: it's not a must, actually I don't see the point of that 2010/11/4 Joshua Muheim psybea...@gmail.com Is this what you mean?? I

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Joshua Muheim
Oh, and there isn't the possibility to define a method which would return the value on the fly? function displayValue() { return 'heeey!!'; } On Thu, Nov 4, 2010 at 1:26 PM, Joshua Muheim psybea...@gmail.com wrote: OK, the point with automatically populating lists seems reasonable. Thank

Re: Does every model really need a name field? --psybear

2010-11-04 Thread Larry E. Masters
var $name = 'ClassName'; is only needed for PHP 4. and var $useTable; is only needed if your class name does not match the singular version of table name. -- Larry E. Masters On Thu, Nov 4, 2010 at 7:15 AM, Almudena Garcia garcia.fra...@gmail.comwrote: You don't need that in the DB, what

Need User Management/Authentication Suggestions

2010-11-04 Thread Jeff T
using 1.3.5. My needs are to create and manage users with an admin console and then have users log in and have access to specific controllers. I don't need user registeration, reset passwords or anything like that. thank you. Jeff Check out the new CakePHP Questions site http://cakeqs.org and help

Need help with XML feed

2010-11-01 Thread Robbington
Hey, What I am trying to do is send a url request to multimaps which in turn gives me a xml form which looks like: ?xml version=1.0 encoding=UTF-8 ? - Results xmlns=http://clients.multimap.com/API; xmlns:xsi=http:// www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://

Re: need help with form

2010-11-01 Thread malena.gf
You just need to do this: echo $form-create('Result', array('action' = 'person')); and you will be posting it to that action. There you can do the query you need... anyway, according to your code, you can do this: function findperson() { if (!empty($this-data

need help with form

2010-10-31 Thread Briko03
Here is my view: ?php echo $form-create('Result', array('action' = 'findperson')); echo $form-input('lname'); echo $form-input('fname'); echo $form-submit(); echo $form-end(); ? Here is the action: function findperson() { if (!empty($this-data)) {

Re: need help with form

2010-10-31 Thread cricket
and not sure what I am doing wrong Don't redirect as that creates an entirely new request. You could use setAction() instead. But I think you need to ask yourself whether this is really the best way to do this. findPerson() doesn't seem to do a lot of finding at all. So why bother? Couldn't you

Re: need help with form

2010-10-31 Thread Briko03
Don't redirect as that creates an entirely new request. You could use setAction() instead. But I think you need to ask yourself whether this is really the best way to do this. findPerson() doesn't seem to do a lot of finding at all. So why bother? Couldn't you simply go directly to person

Re: need help with form

2010-10-31 Thread cricket
On Sun, Oct 31, 2010 at 8:55 PM, Briko03 nathanrlar...@gmail.com wrote: Does that mean that I can have a view that does not have a corresponding action? How would i get the form to use person and the values from the input? Sorry for the newb questions... I don't understand the question,

Re: need help with form

2010-10-31 Thread Briko03
no the model is result The idea is that I have an action called person this action takes url params to find results by the person. So I am trying to create a form that will direct to that action with the params based on the input from the form On Oct 31, 9:21 pm, cricket

Need help to check my facebook application.

2010-10-27 Thread mupet
If this post is not allowed, please removed. I am new on CakePHP. I just created an application using facebook graph API. The name of the application is FansBattle. FansBattle is the place to fight for a brand, product or communities based on the number of fans on facebook. The most fans are

Re: I'm new and need help

2010-10-24 Thread Anthony
What don't you understand? On Oct 22, 11:18 am, k2zs gordon.h...@gmail.com wrote: Hello, I am new to using any type of MVC framework. 10+ years experience with PHP but always used the top-down method with includes. My interests are in CMS and I have installed cake and have the blog

I'm new and need help

2010-10-22 Thread k2zs
Hello, I am new to using any type of MVC framework. 10+ years experience with PHP but always used the top-down method with includes. My interests are in CMS and I have installed cake and have the blog tutorial working but can't seem to get ACL working. I used the tutorial for ACL and broke

Re: Routing question, need a department name before all URL's

2010-10-20 Thread ianmcn
' = $value         ) , array(             'department' = '(?!' . $controllerList . ')[a-zA-Z0-9\-]+'         )); } On Oct 19, 10:55 am, ianmcn i.mcnau...@gmail.com wrote: I develop an internal booking/asset management system for my work, it has data separated by department, but I need a way

Re: Routing question, need a department name before all URL's

2010-10-20 Thread ohcibi
the rout itself is in fact pretty straight forward: /:department/:controller/:action is your route... you then have $this- params['department'] in all your controllers and action available. but you still need unique(!) slugs to identify the right department (unless, you include the id within

Re: need help

2010-10-20 Thread Yasir Arafat Hasib
Cake bake for For linux http://arafats.info/archives/434 For windows http://arafats.info/archives/179 On Wed, Oct 20, 2010 at 2:53 AM, cricket zijn.digi...@gmail.com wrote: On Tue, Oct 19, 2010 at 8:25 AM, Sunil Chugh sunilchug...@gmail.com wrote: 'php' is not recognized as an internal

need help

2010-10-19 Thread Sunil Chugh
'php' is not recognized as an internal or external command, operable program or batch file. how to remove this error 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

need help

2010-10-19 Thread Sunil Chugh
steps to configure Cake Console and Bake 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

Re: need help

2010-10-19 Thread Jeremy Burns | Class Outfit
http://book.cakephp.org/view/907/Developing-with-CakePHP Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 Oct 2010, at 13:28, Sunil Chugh wrote: steps to configure Cake Console and Bake Check out the new CakePHP Questions site http://cakeqs.org and

Routing question, need a department name before all URL's

2010-10-19 Thread ianmcn
I develop an internal booking/asset management system for my work, it has data separated by department, but I need a way to have the department specified in the URL as the first segment. For example: /:departmentname/bookings/add After that, the default cakephp conventions would work fine

Re: Routing question, need a department name before all URL's

2010-10-19 Thread cricket
On Tue, Oct 19, 2010 at 11:55 AM, ianmcn i.mcnau...@gmail.com wrote: I develop an internal booking/asset management system for my work, it has data separated by department, but I need a way to have the department specified in the URL as the first segment. For example: /:departmentname

Re: need help

2010-10-19 Thread cricket
On Tue, Oct 19, 2010 at 8:25 AM, Sunil Chugh sunilchug...@gmail.com wrote: 'php' is not recognized as an internal or external command, operable program or batch file. how to remove this error Is this a Windows setup? That error msg is unfamiliar but it appears to suggest that you don't have

Re: Routing question, need a department name before all URL's

2010-10-19 Thread Sam
( 'controller' = $value ) , array( 'department' = '(?!' . $controllerList . ')[a-zA-Z0-9\-]+' )); } On Oct 19, 10:55 am, ianmcn i.mcnau...@gmail.com wrote: I develop an internal booking/asset management system for my work, it has data separated by department, but I need

Am Stuck Need Help

2010-10-08 Thread tubiz
Please i am working on a CakePHP application and i have some little problem. 1. I am trying to save some text into the database and would like to preserve the backspace as it is when it is displayed. 2. I also want to increase a field in the database table by one when an action is carried out,

Re: Am Stuck Need Help

2010-10-08 Thread Xoubaman
1. Use nl2br PHP function in the view. You may also take a look at the sanitize class to prevent output problems: http://book.cakephp.org/view/1183/Data-Sanitization 2. In the action use set method (http://book.cakephp.org/view/1031/ Saving-Your-Data). You can also use a custom SQL query with

Re: Am Stuck Need Help

2010-10-08 Thread euromark
1. nl2br(h($var)) is fine On 8 Okt., 20:52, Xoubaman xouba...@gmail.com wrote: 1. Use nl2br PHP function in the view. You may also take a look at the sanitize class to prevent output problems:http://book.cakephp.org/view/1183/Data-Sanitization 2. In the action use set method

I'm creating CakePOWER.org: a plugin enhancement extension for CakePHP, i need your help!

2010-10-06 Thread MPeg
starting develope CakePOWER.org based upon CakePHP 1.3. This project will do the same things but now i'm trying to distribute it and document it in a wiki. I need you to proceed with this project, document it and distribute it. Please visit cakepower.org and mail me at i...@cakepower.org! Thanks

Re: Getting numeric array keys from query... need model names.

2010-10-06 Thread Dr. Loboto
We had same problem on find queries with MySQL 5.0 and model for view based on UNION query. For a while we lived with check for key, then upgraded MySQL to 5.1 and problem gone. On Oct 5, 9:28 pm, foldiman vi...@vinceallen.com wrote: I'm currently deploying a CakePHP site that works fine in one

Getting numeric array keys from query... need model names.

2010-10-05 Thread foldiman
I'm currently deploying a CakePHP site that works fine in one environment (staging), but then encounters errors in another (live). The error... my result array keys in staging reflect the joined tables while my array keys in live are numeric. This means, on live, when I state $my_var =

Re: Do I need to use sanitize?

2010-09-30 Thread WhyNotSmile
nothing needed as Cake properly escape data itself. So if you send HTML emails you need just escape user-entered text and that's all. On Sep 29, 11:43 pm, WhyNotSmile sharongilmor...@gmail.com wrote: I'm creating a website which has a few forms, and wondering whether I need to use Sanitize

RE: Do I need to use sanitize?

2010-09-30 Thread Dave Maharaj
Just jumping in here for my opinion, not advise. I have seen this question many times, asked it myself along the way and I guess the question asked includes the word need. And as Dr. Loboto pointed out, you do not need to. But I would like to my 2 cents and even though you may not need to, I

Re: Do I need to use sanitize?

2010-09-30 Thread euromark
as user. so especially for aesthetic reasons you are better off leaving the post as it is if somebody wants to post crap, you can filter all you want, the result will still be crap. and it will still need to be deleted manually afterwards. and all other posts are usally genuine and should be posted

Re: Do I need to use sanitize?

2010-09-30 Thread j.blotus
as it is if somebody wants to post crap, you can filter all you want, the result will still be crap. and it will still need to be deleted manually afterwards. and all other posts are usally genuine and should be posted as the poster intended to. of course with h() to ensure nothing happens. but here we

Re: Do I need to use sanitize?

2010-09-30 Thread euromark
wants to post crap, you can filter all you want, the result will still be crap. and it will still need to be deleted manually afterwards. and all other posts are usally genuine and should be posted as the poster intended to. of course with h() to ensure nothing happens. but here we go

Need help finalizing the configuration of my CakePHP setup

2010-09-29 Thread Dan
I thought I understood the advanced configuration of CakePHP... however, I keep getting the error stated at the bottom of this email... Cake core: c:\cake\ The rest: c:\Apache2.2\htdocs\app My config file: /** * The full path to the directory which holds app, WITHOUT a trailing DS. * */

Do I need to use sanitize?

2010-09-29 Thread WhyNotSmile
I'm creating a website which has a few forms, and wondering whether I need to use Sanitize for those. In each case, there are a few text boxes which accept input from visitors; that information gets emailed to a central address. Nothing is stored in the database. Do I need to use sanitize

Re: Need help finalizing the configuration of my CakePHP setup

2010-09-29 Thread cricket
On Tue, Sep 28, 2010 at 8:54 PM, Dan dannyetdi...@gmail.com wrote: Cake core: c:\cake\ ...        if (!defined('CAKE_CORE_INCLUDE_PATH')) {                define('CAKE_CORE_INCLUDE_PATH', DS.'cake');        } That should be, 'c:' . DS . 'cake', no? Check out the new CakePHP Questions

Re: Do I need to use sanitize?

2010-09-29 Thread Dr. Loboto
I personally never user Sanitize as don't want to break user-entered data. Instead of it I use h() to escape all text on HTML output. On save to database also nothing needed as Cake properly escape data itself. So if you send HTML emails you need just escape user-entered text and that's all

Need FormHelper to show errors from another controller validating

2010-09-28 Thread j.blotus
Hi guys, I have a form on ListingsController::View($id) that submits to InquiriesController::add() I perform model validation from InquiriesController, and redirect back to ListingsController::View($id). How do I pass invalidFields() from one controller to the next? Check out the new CakePHP

Re: Need FormHelper to show errors from another controller validating

2010-09-28 Thread j.blotus
nevermind I just useds a session to pass invalidFields() and manually used invalidate() in my other controller On Sep 28, 10:52 am, j.blotus j.blo...@gmail.com wrote: Hi guys, I have a form on ListingsController::View($id) that submits to InquiriesController::add() I perform model

User model: How to decide what field need to be a session?

2010-09-18 Thread Mariano C.
I have a table users, associated to model User and so on... When I logged in, row associated to my account info, will be automatically saved as session. There's a lot of field inside users/User that i don't need to save as session, how can I exclude it? Check out the new CakePHP Questions site

Re: User model: How to decide what field need to be a session?

2010-09-18 Thread Jeremy Burns | Class Outfit
, associated to model User and so on... When I logged in, row associated to my account info, will be automatically saved as session. There's a lot of field inside users/User that i don't need to save as session, how can I exclude it? Check out the new CakePHP Questions site http://cakeqs.org

Need some help with a rather complex find() request

2010-09-17 Thread Michael Gaiser
So, here is the basics of my setup. - There is a table of Locations. - Each Location has a type. (0=global, 1=national, 2=regional, 3=city, 4=landmark) - Each Location has a parent_id allowing for you to chain locations. - The chain uses the type field to determine

Re: Need some help with a rather complex find() request

2010-09-17 Thread Jeremy Burns | Class Outfit
Take a look at the containable behaviour. If it doesn't do it for you out of the box, it'll surely get you close. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 17 Sep 2010, at 15:55, Michael Gaiser wrote: So, here is the basics of my setup. There is a

need help fixing this

2010-09-14 Thread JoHN
hi guys. please take a look at this URL: http://soulvclassroom.byethost22.com/ there seems to be an error.. it looks easy to fix though but i dont know how.. LoL.. Help is very much appreciated.. Thanks... Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: need help fixing this

2010-09-14 Thread Sam Sherlock
turn on debugging - Configure::write('debug', 2); check logs - cake and webserver if you have access to to those http://mark-story.com/posts/view/how-i-debug-php-errors-and-issues -- You provide no detail in your original message. Was this working before and stopped recently? Have you set

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-08 Thread Tomfox Wiranata
what if he cancels the process? then i'd have to delete it from the database its a little like ebay when you create product sites.until the user saves it i am storing everything temporarily in my sessionso you think saving it in my database makes sense? thx On 7 Sep., 22:53,

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-08 Thread cricket
On Wed, Sep 8, 2010 at 5:29 AM, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: what if he cancels the process? then i'd have to delete it from the database its a little like ebay when you create product sites.until the user saves it i am storing everything temporarily in my

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-08 Thread Tomfox Wiranata
thx cricket...the storing in a table was actually good :) i am using a temporary table during the process and when the user saves, i copy the data from tmp to the real table :) thank you On 8 Sep., 19:24, cricket zijn.digi...@gmail.com wrote: On Wed, Sep 8, 2010 at 5:29 AM, Tomfox Wiranata

i need to pick your brain on this: uploading and deleting multiple files

2010-09-07 Thread Tomfox Wiranata
, since it should write it in the session variable that got free, the 2nd. RESULT: 2nd variable stays free, 5th gets replaced.. long story short. i need an algorithm, that dynamically allocates files paths to the first FREE variable. like an array and cake find the first free spot and writes the path

i need to pick your brain on this: uploading and deleting multiple files

2010-09-07 Thread Tomfox Wiranata
it in the session variable that got free, the 2nd. RESULT: 2nd variable stays free, 5th gets replaced.. long story short. i need an algorithm, that dynamically allocates files paths to the first FREE variable. like an array and cake find the first free spot and writes the path there. then i could

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-07 Thread cricket
I'm not sure why you need Session involved but it seems to me that, if the user deletes a file, it should be simple enough to re-create the array and re-write it to the session. And no need to number the paths, either. Just define the maximum number in bootstrap.php and refer to that. if (sizeof

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-07 Thread Tomfox Wiranata
i am using the session to save information temporarily until they are saved in the database... re-create the array? you mean order everything from the beginning? On 7 Sep., 18:26, cricket zijn.digi...@gmail.com wrote: I'm not sure why you need Session involved but it seems to me

Re: i need to pick your brain on this: uploading and deleting multiple files

2010-09-07 Thread cricket
On Tue, Sep 7, 2010 at 3:49 PM, Tomfox Wiranata tomfox.wiran...@gmail.com wrote: i am using the session to save information temporarily until they are saved in the database... re-create the array? you mean order everything from the beginning? Why not just save to the DB at the time that

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-09-06 Thread psybear83
OK, I figured it out myself. I had to replace the test.php file in app/ webroot/ with *a new version* of test.php which I got from the newest 1.2.8 release of CakePHP! I also had to copy the cake.generic.css file from the 1.2.8 release to app/webroot/css to make the test.php site look good in the

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-09-06 Thread AD7six
On Sep 6, 10:47 am, psybear83 psybea...@gmail.com wrote: OK, I figured it out myself. I had to replace the test.php file in app/ webroot/ with *a new version* of test.php which I got from the newest 1.2.8 release of CakePHP! I also had to copy the cake.generic.css file from the 1.2.8 release

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-09-01 Thread Joshua Muheim
I just upgraded to v1.2.8, but still the same error. Very, very frustrating, I have absolutely no idea what could be the problem... On Tue, Aug 31, 2010 at 4:04 PM, Joshua Muheim psybea...@gmail.com wrote: Thank you. If there's no other way, I will have to do that, but I'd rather not before I

SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread psybear83
Hi everybody I'm working with CakePHP 1.2.0.7296 RC2 and want to use SimpleTest to test my application. I copied it to my vendors folder, but when opening myapp/test.php, I get the following error: You need a new test.php. Try this one: cake\console\libs\templates \skel\webroot\test.php I have

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread Mike Karthauser
On Tue, August 31, 2010 10:20 am, psybear83 wrote: Hi everybody I'm working with CakePHP 1.2.0.7296 RC2 and want to use SimpleTest to test my application. I copied it to my vendors folder, but when opening myapp/test.php, I get the following error: You need a new test.php. Try this one

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread Joshua Muheim
with CakePHP 1.2.0.7296 RC2 and want to use SimpleTest to test my application. I copied it to my vendors folder, but when opening myapp/test.php, I get the following error: You need a new test.php. Try this one: cake\console\libs\templates \skel\webroot\test.php copy the file above into your webroot

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread Fran Iglesias
Hi El 31/08/2010, a las 14:41, Joshua Muheim escribió: Still the same error. Even when there is *no* test.php file in the webroot I get this error. Very frustrating. Any other help? I remember having the very same error, and the solution was to update cake 1.2 to final. --- Fran Iglesias

Re: SimpleTest: You need a new test.php. Try this one: cake\console\libs\templates\skel\webroot\test.php

2010-08-31 Thread Joshua Muheim
Thank you. If there's no other way, I will have to do that, but I'd rather not before I have my tests up and running... On Tue, Aug 31, 2010 at 3:26 PM, Fran Iglesias cakephpi...@gmail.com wrote: Hi El 31/08/2010, a las 14:41, Joshua Muheim escribió: Still the same error. Even when there is

Need help from a routing expert

2010-08-30 Thread Greg Skerman
Ok so this should be fairly easy right? I have a few controllers (forums, threads and posts) The index of the forums controller shows the list of available forums The index of the threads controller shows the list of threads for a forum (so an ID is passed to the index method) The index of the

Re: Need help from a routing expert

2010-08-30 Thread Andy Dirnberger
Router::connect('/threads/*', array('controller' = 'threads', 'action' = 'index')); On Aug 30, 7:52 am, Greg Skerman gsker...@gmail.com wrote: Ok so this should be fairly easy right? I have a few controllers (forums, threads and posts) The index of the forums controller shows the list of

Re: Need help from a routing expert

2010-08-30 Thread Greg Skerman
arghh... told you it'd be easy... thanks for that :) On Mon, Aug 30, 2010 at 10:35 PM, Andy Dirnberger andy.dirnber...@gmail.com wrote: Router::connect('/threads/*', array('controller' = 'threads', 'action' = 'index')); On Aug 30, 7:52 am, Greg Skerman gsker...@gmail.com wrote: Ok so

Re: Need help from a routing expert

2010-08-30 Thread Miles J
You don't even need a route... Router::connect('/threads/*', array('controller' = 'threads', 'action' = 'index')); This by default will become /threads/ without the route. So remove the route and just pass this: ?php echo $html-link('Title', array('controller' = 'threads', $id)); ? Which

Re: Need help from a routing expert

2010-08-30 Thread Greg Skerman
That's even easier :) thanks On Tue, Aug 31, 2010 at 3:23 AM, Miles J mileswjohn...@gmail.com wrote: You don't even need a route... Router::connect('/threads/*', array('controller' = 'threads', 'action' = 'index')); This by default will become /threads/ without the route. So remove

Re: hasMany problems/bug - need feedback

2010-08-28 Thread Anthony
I noticed this as well but figured I may have been doing something incorrectly but moved on to other things. Here is my example: I have a users table and I also have a users_users table to facilitate following/follower type relationships. Each users profile has a setting to make their account

Re: hasMany problems/bug - need feedback

2010-08-28 Thread Anthony
I noticed this as well but figured I may have been doing something incorrectly but moved on to other things. Here is my example: I have a users table and I also have a users_users table to facilitate following/follower type relationships. Each users profile has a setting to make their account

Re: Does every model need a name field? Why?

2010-08-27 Thread psybear83
Thank you for the answer, Jeremy! On 26 Aug., 10:28, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Not strictly accurate - you do not need to have either a name or title field in your table, but they have their uses. Cake can use a 'name' or 'title' field to automatically

hasMany problems/bug - need feedback

2010-08-27 Thread Dan Heberden
This isn't a i cant get this or that model or relationship question, btw :) (this is cake 1.3.2 an i've shortened the selects for readability sake) Consider these models/relationships: User, Group, Post User belongsTo Group User hasMany Post With recursive set to 1, you'd think that

Does every model need a name field? Why?

2010-08-26 Thread psybear83
Hi all I'm just digging into CakePHP and continue an application of my previous co-worker. He told me that every model needs a name field in the database. Why's that? I did a search on Google but could't find an answer... Thanks Josh Check out the new CakePHP Questions site http://cakeqs.org

Re: Does every model need a name field? Why?

2010-08-26 Thread Robert J. Maiolo
perhaps he meant a name variable, as shown in the following example: 1. ?php 2. class Ingredient extends AppModel { 3. var $name = 'Ingredient'; 4. } 5. ? On Thu, Aug 26, 2010 at 1:23 AM, psybear83 psybea...@gmail.com wrote: Hi all I'm just digging into CakePHP and

Re: Does every model need a name field? Why?

2010-08-26 Thread Jeremy Burns | Class Outfit
Not strictly accurate - you do not need to have either a name or title field in your table, but they have their uses. Cake can use a 'name' or 'title' field to automatically populate lists and such. Having said that, you can override it with var $displayField in your model. See: http

i need advice on caching information before storing to database

2010-07-25 Thread Tomfox Wiranata
, how the site would look like. my questions: a) where do i cache the information before they get stored in my database? in my session? hidden fields? somewhere else? cause when the preview is called the information need to be retreived from the caching, cause it is not yet in the database

Re: i need advice on caching information before storing to database

2010-07-25 Thread cricket
the information need to be retreived from the caching, cause it is not yet in the database.. You could create a form with hidden elements along with the preview. Then this second form will submit the data again. IOW, when the User is first choosing title, etc. that form submits to your preview

string validation roll(i need some idea)

2010-07-23 Thread hoss7
i have 4 user kind user 1: can only enter 400 character user 2: can only enter 1600 character user 3: can only enter 1 character user 4: no validation roll i need some best idea to create validation roll Check out the new CakePHP Questions site http://cakeqs.org and help others

Re: string validation roll(i need some idea)

2010-07-23 Thread cricket
On Fri, Jul 23, 2010 at 10:14 AM, hoss7 hoss...@gmail.com wrote: i have 4 user kind user 1: can only enter 400 character user 2: can only enter 1600 character user 3: can only enter 1 character user 4: no validation roll i need some best idea to create validation roll Are you checking

Re: string validation roll(i need some idea)

2010-07-23 Thread hoss7
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

css + php layout: what do i need to do, to change this usual php code into cakephp terms?

2010-07-04 Thread Tomfox Wiranata
i use in cake to implement links to other sites without loosing the css formatting? can i re-use some of this code (my DIVs) or do even those need to be re-coded? second i am using buttons wrapped in a form (i am having the feeling the form is unnecessary here??) form action

Re: css + php layout: what do i need to do, to change this usual php code into cakephp terms?

2010-07-04 Thread nini
=profile class=linksEigene Linkables / a                 /div         /div what code do i use in cake to implement links to other sites without loosing the css formatting? can i re-use some of this code (my DIVs) or do even those need to be re-coded? second i am using buttons wrapped in a form

Re: css + php layout: what do i need to do, to change this usual php code into cakephp terms?

2010-07-04 Thread cricket
=index.php?site=profile class=linksEigene Linkables / a                /div        /div what code do i use in cake to implement links to other sites without loosing the css formatting? can i re-use some of this code (my DIVs) or do even those need to be re-coded? Use the 3rd param to the Html

Re: Need CSV import: best practices?

2010-07-02 Thread LunarDraco
I placed my csv import logic in my model and will probably move portions of it to a behavior as soon as I need to import more than the one type of model data. The reason for this is I needed to handle large record count imports where there was a substantial amount of related data in the imported

<    1   2   3   4   5   6   7   8   9   10   >