Re: Localizing autherror and loginerror

2008-09-12 Thread Braindead
Hi guys, after spending some more time I solved my problem with authError and loginError messages of the Auth component only displaying in the default language. Just in case somebody has the same problem I post the solution. :-) This is my app_controller.php file where only the L10n part and

Re: ajax jquery quicksave?

2008-09-12 Thread David C. Zentgraf
Executing a controller action is just doing a page request. If you type /myapp/controller/hide into the browser, Controller::hide() will be executed. If you do an AJAX request to /myapp/controller/hide, Controller::hide() will be executed just the same. Where's the problem? :-3 On 12 Sep

Re: Localizing autherror and loginerror

2008-09-12 Thread David C. Zentgraf
I had the same problem a while back, search the group for it. The problem is that the first time a translation is done, i.e. the __() function is used, the language is locked and cannot be changed anymore for the rest of the page execution. (Actually, rightly so, otherwise you might get

Re: ajax jquery quicksave?

2008-09-12 Thread rocket
Well I have --- controller -- function hide() { echo hello; } --- jquery --- $(a.hide).click(function() { $.post('hide', {}, function() { alert('saved.'); }); return

Re: ajax jquery quicksave?

2008-09-12 Thread David C. Zentgraf
First, whatever comes back from the server in an AJAX request will only be available in request.responseText, so you'll have to alert() that instead of 'saved'. Second, the URL is exactly the same as for any other URL and any link on the page, it's relative to the current page, absolute

Re: ajax jquery quicksave?

2008-09-12 Thread rocket
Gotcha. Didn't realize the response was only available in the request.responseText. New to ajax and didn't quite fully understand the protocol. -_- On Sep 12, 3:09 am, David C. Zentgraf [EMAIL PROTECTED] wrote: First, whatever comes back from the server in an AJAX request will only be

CakePHP causes 500 error b/c of syntax error - help?

2008-09-12 Thread Mike
Hello! My problem is that when I put a syntax error into my .php file {say, instead of writing Configure::write('debug', 2); , I write Configure::write('debug', }, with CakePHP, I'm getting an HTTP response code of 500 (internal server error). When I use a raw .php file do something

newbie syntax question

2008-09-12 Thread .
Hi I am trying to convert the Remote Service (helloworld-server.php) in the following tutorial (in the URL below) to cakephp Component-compatible. I am struggling with the correct syntax, however. In the server-register(..) method, the first parameter should be the name of the service function.

Re: newbie syntax question

2008-09-12 Thread .
This is the error i get: SOAP-ENV:Clientmethod apos;apos; not defined in service] On Fri, Sep 12, 2008 at 1:27 AM, . [EMAIL PROTECTED] wrote: Hi I am trying to convert the Remote Service (helloworld-server.php) in the following tutorial (in the URL below) to cakephp Component-compatible. I

Re: newbie syntax question

2008-09-12 Thread .
basically the problem is in the examples I've seen on nusoap server, they are not in a Class. I'd like to put it into a class. How would I do this? On Fri, Sep 12, 2008 at 1:44 AM, . [EMAIL PROTECTED] wrote: This is the error i get: SOAP-ENV:Clientmethod apos;apos; not defined in service]

frontend texts spread around the application layers

2008-09-12 Thread stefanski
Fellows of the cake ring, I come to the point where I thought about having common notification texts in a more central position in my application. Right now its pretty mixed like: - validation messages in the models - notifications in the session-flash, which are set in the controller - and a

Re: Localizing autherror and loginerror

2008-09-12 Thread Marcin Domanski
why not translate these in beforeRender ? :) HTH, -- Marcin Domanski http://kabturek.info On Fri, Sep 12, 2008 at 8:28 AM, David C. Zentgraf [EMAIL PROTECTED] wrote: I had the same problem a while back, search the group for it. The problem is that the first time a translation is done, i.e.

Re: $html-link default titles

2008-09-12 Thread RichardAtHome
Which accessibilty checkpoint requires you to have a title attribute on every hyperlink? The nearest I can find is checkpoint 13.1: http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-meaningful-links 13.1 Clearly identify the target of each link. [Priority 2] Link text should be meaningful

Re: Small CMS from cakephp

2008-09-12 Thread villas
http://ovencms.tarkvaratehas.ee/ I registered with them but I'm not able to get a single link to download it. I note that it's also available on CakeForge without registration :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: frontend texts spread around the application layers

2008-09-12 Thread Daniel Hofstetter
Hi Stefanski, I come to the point where I thought about having common notification texts in a more central position in my application. Right now its pretty mixed like: - validation messages in the models - notifications in the session-flash, which are set in the controller - and a whole

Re: CakePHP causes 500 error b/c of syntax error - help?

2008-09-12 Thread [EMAIL PROTECTED]
Hi, You already covered most suggestion I might have had, but I thought I would post what I get when I write the same syntax. My installation of php and CakePHP 1.2 rc2 produces this type of output for any syntax error: Parse error: syntax error, unexpected '}' in /Users/martin/Sites/cake/

BeforeFilter

2008-09-12 Thread nayan
I am using one controller for both admin and front user. i have use beforeFilter funtion to check admin session .so it will always run before execution of any action.so i am not able to run fornt user's action bcoz it always check for admin session that is not set.also check admin session is

Re: Solved - Re: Create links to navigate back to last visited page

2008-09-12 Thread StanMoong
Solution can be found here: http://fat-tier.blogspot.com/2008/09/cancel-button-for-form.html On Sep 12, 6:08 am, integrator [EMAIL PROTECTED] wrote: I am not satisfied with this solution. For instance when I edit an item in the list and save the changes I want to go back to the list I had

Re: Solved - Re: Create links to navigate back to last visited page

2008-09-12 Thread StanMoong
Hi, I had the same problem as you. I was not able to use javascript to redirect (using location.href), got error message about no access to the directory. The history.back() doesn't work too well for me because user could be trying to save but encounter validation error and after several times,

Re: Field Naming Convention

2008-09-12 Thread nayan
But Kien can we create a input box or check box or radio button or select with out labe bcoz when i write ?php echo $form- input('FanType/fantype_name'); ? it display FanType Name before my text box and also there is no gap between label an text box.i need to aply style sheet On Aug 20, 1:01 am,

KTML Editor

2008-09-12 Thread mirfan
Hello, Well, anybody help me how i will include KTML Editor in cake php please reply me on [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Html Helper

2008-09-12 Thread nayan
Thank you for reply.i wana to ask you one thing that i didnt fine any where,we create form like this ?php echo $form-create('Setting', array('action' = 'admin_edit')); ? .Tell me first stands for what (Here Seeting) means it is controller name or model name On Sep 10, 7:16 pm, Luiz Poleto

Re: URL not Found Error

2008-09-12 Thread nayan
Your mod_rewtrite should be ON and then restart you Apache...then set default controller in routes.php On Sep 9, 4:53 am, Sabrina Akter [EMAIL PROTECTED] wrote: i set up all the configuration newly.and also create all the files newly. Apache and mod_rewtrite are perfectly ok. and all the files

Re: Custom validation doesn't work

2008-09-12 Thread David C. Zentgraf
On 12 Sep 2008, at 12:08, Sen wrote: return $valid; // just for debugging $this-autoRender = false; var_dump($data); You'll never see your debugging calls when the function always bails out with the return just before. --~--~-~--~~~---~--~~

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: Html Helper

2008-09-12 Thread David C. Zentgraf
$form-create(string $model = null, array $options = array()); from: http://book.cakephp.org/view/183/Creating-Forms On 12 Sep 2008, at 13:16, nayan wrote: Thank you for reply.i wana to ask you one thing that i didnt fine any where,we create form like this ?php echo $form-create('Setting',

Re: Field Naming Convention

2008-09-12 Thread David C. Zentgraf
http://book.cakephp.org/view/196/options-label Please nayan, read the Book, okay? On 12 Sep 2008, at 13:53, nayan wrote: But Kien can we create a input box or check box or radio button or select with out labe bcoz when i write ?php echo $form- input('FanType/fantype_name'); ? it display

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

making a view without a controller or model

2008-09-12 Thread gabriel
Hi, I am new, as you might guess.., I have created an (HTML) view in the pages folder in views, called account.ctp. It doesn't have a controller or model. But is looking for a controller. How do I get around this? Thanks and blessings to the person who helps me.

Re: making a view without a controller or model

2008-09-12 Thread grigri
The url you want is : /pages/account - that will get it to display If you want to access it via /account then add this line to app/config/ routes.php: Router::connect('/account', array('controller' = 'pages', 'action' = 'view', 'account')); hth grigri On Sep 12, 2:59 pm, gabriel [EMAIL

Re: Help with models?

2008-09-12 Thread nachopitt
Isn't just only a 'belongs to' association? 'Product' belongsTo 'Category'? On Sep 11, 9:31 pm, David C. Zentgraf [EMAIL PROTECTED] wrote: You're doing it exactly the way you described it:http://book.cakephp.org/view/81/belongsTohttp://book.cakephp.org/view/82/hasMany On 12 Sep 2008, at

Re: KTML Editor

2008-09-12 Thread Nate
http://www.google.com/search?client=safarirls=en-usq=KHTML+editor+CakePHPie=UTF-8oe=UTF-8 On Sep 12, 12:59 am, mirfan [EMAIL PROTECTED] wrote: Hello, Well, anybody help me how i will include KTML Editor in cake php please reply me on [EMAIL PROTECTED]

Re: Help with models?

2008-09-12 Thread David C. Zentgraf
Product belongsTo Category and Category hasMany Products You could just do Product belongsTo Category, but if you link it the other way as well you can get Products in a Category when searching from Category-find() easily. On 12 Sep 2008, at 23:32, nachopitt wrote: Isn't just only a

Re: making a view without a controller or model

2008-09-12 Thread gabriel
~Thanks !! On 12 Sep, 15:28, grigri [EMAIL PROTECTED] wrote: The url you want is : /pages/account - that will get it to display If you want to access it via /account then add this line to app/config/ routes.php: Router::connect('/account', array('controller' = 'pages', 'action' = 'view',

Re: frontend texts spread around the application layers

2008-09-12 Thread David C. Zentgraf
Use the __() i18n method for everything and you can gather all messages in .po translation files. For model validation messages you'd have to use Daniel's trick of using __() in the form-input options. Whether that'll really make things easier for you I don't know... :-) On 12 Sep 2008, at

Re: An problem about controller without a model

2008-09-12 Thread simonking
yes, I did. On 9月12日, 上午1时33分, Okto Silaban [EMAIL PROTECTED] wrote: Have you named the controller books_controller.php? Okto.Silaban.Net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Caching help

2008-09-12 Thread Kenchu
Thanks! But what about caching for longer periods, w/o updating? Because as of now, if you update a table, then the queries will be remade. I just want 1 query to occur once each day for a specific thing.. On Sep 10, 10:53 am, Dave J [EMAIL PROTECTED] wrote: Hi Kenchu, I'm almost sure this

Re: KTML Editor

2008-09-12 Thread Samuel DeVore
man that darn google always so fast with an answer... I also find that http://plzsendmethecode.blogspot.com/ is a good spot for answers to un-researched questions. On Fri, Sep 12, 2008 at 7:34 AM, Nate [EMAIL PROTECTED] wrote:

Making a simple link to another page

2008-09-12 Thread gabriel
I would like to make a simple link to a view which does not have a controller and model, can anyone help me. REgards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Making a simple link to another page

2008-09-12 Thread Siegfried Hirsch
Use something like this: $this-element('your_element'); On Fri, Sep 12, 2008 at 5:45 PM, gabriel [EMAIL PROTECTED] wrote: I would like to make a simple link to a view which does not have a controller and model, can anyone help me. REgards -- Siegfried Hirsch hhS - Welserstr. 1 -

Fuzzy Search

2008-09-12 Thread Kyle Decot
I am building a skatepark directory website and I would like my visitors to be able to do fuzzy searches such as ohio outdoor or california concrete. Any tips on how to go about making a fuzzy search query like this? Thanks. --~--~-~--~~~---~--~~ You received this

Re: Making a simple link to another page

2008-09-12 Thread Donkeybob
is this a normal html link? then = echo $html-link('My Link', '/ your/view'); On Sep 12, 11:57 am, Siegfried Hirsch [EMAIL PROTECTED] wrote: Use something like this: $this-element('your_element'); On Fri, Sep 12, 2008 at 5:45 PM, gabriel [EMAIL PROTECTED] wrote: I would like to make a

Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread dan3501
I've searched the Internet to no end, and still haven't been able to resolve this issue. Issue: CakePHP welcome page appears without colors -- indicating a configuration error. Environment: Ubuntu 8.0.4, apache document-root : /var/www, cake application directory (where I unzipped the cake zip

Validation not working on model

2008-09-12 Thread luigi7up
Hello everyone, I have two models MOTIVE var $hasMany = array('Comment'); COMMENT var $belongsTp=array('Motive'); I want to make comments on motives so I added comment() function into Motive controller and in views/motive/view.php I added following form: echo

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

Problems generating ACL database

2008-09-12 Thread jeff aigner
I'm trying to generate the ACL database using the command below: # bash cake schema run create DbAcl And here is the errors I get: PHP Notice: Constant CURLOPT_TRANSFERTEXT already defined in Unknown on line 0 Welcome to CakePHP v1.2.0.7296 RC2 Console

Re: CakePHP causes 500 error: fixed!

2008-09-12 Thread Mike
On Sep 12, 4:16 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, You already covered most suggestion I might have had, but I thought I would post what I get when I write the same syntax. My installation of php and CakePHP 1.2 rc2 produces this type of output for any syntax error: Parse

Nusoap cakephp question

2008-09-12 Thread .
Hi I am trying to convert the Remote Service (helloworld-server.php) in the following tutorial (in the URL below) to cakephp Component-compatible. I am struggling with the correct syntax, however. In the server-register(..) method, the first parameter should be the name of the service function.

Re: CakePHP causes 500 error: fixed!

2008-09-12 Thread Jon Bennett
Hi Mike, Is there a way to request that the 'no error reporting when debugging is off' this be added to the documentation? http://book.cakephp.org/view/42/The-Configuration-Class#CakePHP-Core-Configuration-Variables-44 I'm not sure it's clear enough though, perhaps placing it below the

Re: Nusoap cakephp question

2008-09-12 Thread francky06l
I use cake with nusoap, I did a small tutorial and sample apps here: http://www.cakephpforum.net/index.php?showtopic=559 hth On Sep 12, 9:07 pm, . [EMAIL PROTECTED] wrote: Hi I am trying to convert the Remote Service (helloworld-server.php) in the following tutorial (in the URL below) to

Re: Purpose of vendors directory?

2008-09-12 Thread Jon Bennett
Hi Thomas, In my limited exposure to CakePHP, it always seemed that the vendors directory was intended for third-party resources. However, the tutorial below recommends placing TinyMCE in a jscripts directory rather than vendors, so I'm assuming that I have something wrong. What is

Re: KTML Editor

2008-09-12 Thread Jon Bennett
man that darn google always so fast with an answer... Nate missed a crucial part of the request, they asked for the reply to be sent offlist to just them... :p jb -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett

Re: KTML Editor

2008-09-12 Thread Marcin Domanski
On Fri, Sep 12, 2008 at 11:24 PM, Jon Bennett [EMAIL PROTECTED] wrote: man that darn google always so fast with an answer... Nate missed a crucial part of the request, they asked for the reply to be sent offlist to just them... :p yeah you can't get any decent support here ;)

Re: KTML Editor

2008-09-12 Thread Sam DeVore
At least the support is cheap === Sent from my ATT Rotary Phone http://blog.samdevore.com On Sep 12, 2008, at 3:31 PM, Marcin Domanski [EMAIL PROTECTED] wrote: On Fri, Sep 12, 2008 at 11:24 PM, Jon Bennett [EMAIL PROTECTED] wrote: man that darn google always so fast with an answer...

Re: Error handling

2008-09-12 Thread Donkeybob
check out the manual for debugging and logging http://book.cakephp.org/view/155/Debugging http://book.cakephp.org/view/157/Logging also . . .firebug with firephp is a great tool! On Sep 12, 6:06 pm, Luiz Poleto [EMAIL PROTECTED] wrote: Hello guys, I was wondering whether it's possible to

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

Re: Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread Brett Wilton
Sound's like you don't have the .htaccess file in your /var/www/dan directory. If that is not there it will not load your img and css directories correctly. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you

Re: Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread dan3501
Thanks to all the folks on this thread. I was able to read a post by Claudia, and that was able to guide me to fix my problem. Thanks again. On Sep 12, 12:12 pm, dan3501 [EMAIL PROTECTED] wrote: I've searched the Internet to no end, and still haven't been able to resolve this issue. Issue:

Re: Edit forms in Internet Explorer

2008-09-12 Thread Niko
I was having the exact same problem until I disable the mod_auth_sspi module. I then replaced it with mod_authnz_ldap and everything works fine. Maybe you can check something at a module level. When I set a proxy between the web server and IE I found out that when it got stuck all the server got

Re: Installation: Ubuntu / Apache2.2 / mod_re_write

2008-09-12 Thread Brett Wilton
Hi dan3501, it would be worth giving your solution to the problem so others down that track can google it. --- Brett Wilton http://wiltonsoftware.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To

Re: Fuzzy Search

2008-09-12 Thread Dr. Tarique Sani
You probably mean fullText search - Lucene is an option another option is Sphinx, There is a searchable behavior somewhere built around Zend_Search_Lucene HTH Tarique On Fri, Sep 12, 2008 at 9:44 PM, Kyle Decot [EMAIL PROTECTED] wrote: I am building a skatepark directory website and I would