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
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
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
Well I have
---
controller
--
function hide() {
echo hello;
}
---
jquery
---
$(a.hide).click(function() {
$.post('hide', {}, function() {
alert('saved.');
});
return
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
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
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
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.
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
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]
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
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.
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
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
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
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/
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
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
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,
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,
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
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
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
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.
--~--~-~--~~~---~--~~
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
$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',
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
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
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.
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
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
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]
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
~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',
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
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
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
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:
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
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 -
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
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
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
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
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
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
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
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.
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
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
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
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
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 ;)
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...
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
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
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
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:
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
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
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
61 matches
Mail list logo