Your problem lies in this part:
[Rate] = Array
(
[s1_title] = title 1
[s1_day] = day 1
[s1_week] =
[s1_month] =
[extra_info] =
)
I assume that this information was at first retrieved from the
database and presented
Not everything has to be OOP. Im still confused at what your trying to
achieve.
On Feb 10, 11:39 pm, Martin Westin martin.westin...@gmail.com wrote:
I can not imagine why you would use a localized variable variable.
Anyway...
$temp_var = __('String',true);
echo {${$temp_var}};
On Feb 11,
You need to set a css style for th
Ie
th { whitespace:nowrap}
which will stop the lines breaking on spaces.
Mike Karthauser
Brightstorm limited
Tel: 07939252144
On 11 Feb 2010, at 07:19, sebb86 kahlc...@googlemail.com wrote:
Hello,
when i retrieve my data in table-cells, how can i avoid
$temp_var = __('String', true);
$temp_var is not a function just a returned value, if a i calling many
function __() with different value it can't be implemented like this
i created javascript helper that intensively using string manipulation so
curly string syntax is making easier and make a
Now people keep telling me that I am wrong here, but I have always had
problems with deep belongsTo associations not being fetched with
recursive alone.
In your instance LocalInfo belongsTo Subcat which belongsTo Cat which
belongsTo Location and your find recursive stops after the first
belongsTo
Hi, how can I pass a MATH operation into SQL via cake??
I try to do this..but cake always quotes the '+ 1' as well, and sql
then treat it as a string...
array('Section.rght' = 'Section.lft + 1')
is there any trick??
Thanks
Tomas
Check out the new CakePHP Questions site http://cakeqs.org
Something I don't see clear from this approach is, how can I have
permissions on 'create' for a document that's not been yet created?, When I
see this method I can only see 'documents' as a 'resource' an 'interface' or
in the current context, as a 'controller', setting permits on documents
treated
Yeah, that's it. :) Now I feel kind of ashamed for making this thread,
but I guess it was the only way to figure this out. I was searching
too deep. Thank you.
On 10 Lut, 05:05, Dr. Loboto drlob...@gmail.com wrote:
Check this model filename. Should be post_comment.php. This model may
be not
@nurvzy sounds great, will have to give 1.3 another go (tried it when
first released and went back to 1.2x for current project).
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
Check the test case for this new feature:
http://github.com/cakephp/cakephp1x/commit/02330b2d9c292110240c606e976e182c973897e9#diff-1
Some people says this kind of things breaks the MVC pattern. I should be
something like
1) get Section lft.
2) add 1 to this
3) save the result in Section rght.
Addition: It also would be nice, if the cell width would fit to the
cell content.
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
Hello everyone..
actually i'm totally new for the cakephp and i employed to develop
huge website accomplished by cakephp
everything is ok so far ... but i've noticed some variables passed in
the address bar contain database names especially when i'm using
forms to filter or search
Thanks. Furthermore, is it possible to create only a horizotal line
under each complete data-row?
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
Thanks! That works for me:
[code]
style type=text/css
th { white-space:nowrap; }
/style
[/code]
Furthermore, is it possible to create only a horizontal line under
each complete data row?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
Thanks, that works.
Furthermore, is it possible to create only a horizontal line under
each complete data-row?
On 11 Feb., 09:21, mike karthauser mi...@brightstorm.co.uk wrote:
You need to set a css style for th
Ie
th { whitespace:nowrap}
which will stop the lines breaking on spaces.
Something like this:
echo $html-link(
$html-image(recipes/6.jpg, array(alt = Brownies)),
recipes/view/6,
array('escape'=false)
);
or
echo $html-image(recipes/6.jpg, array(
alt = Brownies,
'url' = array('controller' = 'recipes', 'action' = 'view', 6)
));
See:
Hi all!
I love this feature of cakephp, however i have some questions.
this is my model:
class Fest extends AppModel {
var $name = 'Fest';
var $useTable = 'fests';
var $belongsTo = array(
'Category' = array(
'className' =
Jeremy
Thanks for your answer.
But actually i'd like to create a button (not a button-picture), which
links to a view.
I don't want to add a picture, because every button would have an
other description.
So is this possible to realize or must i create lots of pictures? ;-)
Thanks.
Check out the
Yes, you are right, forget the create field. My mistake. You should have
only 3 fields regarding to permissions: Read, Update, Delete, so you can
still implement my idea
On 11 February 2010 06:00, anl hp anle...@gmail.com wrote:
Something I don't see clear from this approach is, how can I have
You have to create your button and lock it inside a form which points to a
controller action that renders a view.
in your view
echo $form-create('MyForm', array('controller'='foo', 'action' = 'bar'));
echo $form-end('My button');
in your foo_controller:
function bar(){
Why you want to use a button?
Buttons must be used when your sending a post request to the server (and
this request should change something in the app)
When what you want is just do a get request, you should use links (you can
style it as a button if you want)
anl
On Thu, Feb 11, 2010 at 3:02
Yes you are right, but since he said he needed a button I told him how to
use it to achieve what he wanted. But in theory you are right he should use
a link and apply some style, however that link will have to point to a
controller function which renders a desired view, just like I told him. ;-)
@Guillermo: Sorry, the message was for him! what you say is the correct way
of do it no matter what ^^
anl
On Thu, Feb 11, 2010 at 3:13 PM, Guillermo Mansilla mansil...@gmail.comwrote:
Yes you are right, but since he said he needed a button I told him how to
use it to achieve what he wanted.
@sebb86: You should read something about RESTful applications, will help you
how to think about the correct way of send or get data from the server ;)
anl
On Thu, Feb 11, 2010 at 3:16 PM, mike karthauser mi...@brightstorm.co.ukwrote:
even simpler would be to use a standard
?php echo
Hi
I'd like to access my cakephp based web site also using https, but I
always get an error saying that the requested url is not found on the
server.
Note that apache is configured to serve also https requests and it works
with other pages...
is there anything to set somewhere?
thanks in
Add containable behavior (http://book.cakephp.org/view/474/
Containable)
then:
$this-Fest-find('first',
array(
'conditions' = array(
'Fest.id' = $id,
),
'contain' = array(
'Linup' = array(
'order' = array('Lineup),
//other stuff
),
//'Category'
Hello all,
thanks for all your answers. After reading all your answers, i've
decided to use a image, which links to a page.
Could someone help me to add a warning-message, e.g. when i delete
something???
Here is my image/link code from the view:
[code]
?php echo $html-image(delete.png,
you already did with this line
$this-Session-setFlash('hardware unit with id: '.$id.' has been
deleted');
make sure you have set up the session messages var in your layout
On 11 February 2010 11:25, sebb86 kahlc...@googlemail.com wrote:
Hello all,
thanks for all your answers. After reading
I struggled with this for while as I don't like relying on java being switched
on. Here's an article I put together that borrows heavily from other
contributors here. It might help.
http://www.jeremy-burns.co.uk/2009/12/cakephp-adding-a-delete-confirm-function/
Jeremy Burns
jeremybu...@me.com
Case Solved!!
Thank you everyone!!
On 11 Fev, 07:33, Martin Westin martin.westin...@gmail.com wrote:
Just my personal opinion:
Making changes to the core has really not been a problem for me since
I put Cake into a Git repo. I just have a branch with my changes in it
and Git takes care of
Hello,
Just a doubt. It looks like Cake takes care of sanitizing data in save and
find, ie. Do I need to sanitize $id when using
$this-redirect(array('action'='edit','id'=$id)); Or is there some
cleaning happening inside redirect?
Thanks
nicolas
*
*
*
*
*
*
*
What refer Activity Percentile in Cake Forge ? SVN activities ? Wiki
Activities ? Downloads ?
If a project hasn't been updated since 2007 but there's a lot of
download.. is it possible that the Activity Percentile is very high ?
Thanks.
Check out the new CakePHP Questions site http://cakeqs.org
Not you don't ... because you should not worry about that, if an id is
invalid and you want handle the situation elegant, you could do something
like this:
if (!is_numeric($id)) {
$this-setFlash('ooopss, dont do that!');
$this-redirect();
}
anl
On Thu, Feb 11, 2010 at 7:05 PM,
The below ajax request works well, but it's using default.ctp as
layout file instad of ajax.ctp. How can I tell it to use ajax.ctp as
layout file?
thanks
? $options = array(
'url'=array(
'controller'='items',
'action'='view',
In your items controller, you have to set the layout, when you detect
that it is an AJAX request that you are processing.
See how to detect this at
http://book.cakephp.org/view/350/Obtaining-Request-Information
And here for the layout
I just got done baking my Models and test cases, and have not altered
any of the files generated by the bake. When I run the test cases for
my models, I get the above error message. Any ideas?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
Great, you saved me a lot of time! And to answer your question, well i
just missed it, yes, it's more logical to name that field category_id
On 11 фев, 19:41, jodator joda...@gmail.com wrote:
Add containable behavior (http://book.cakephp.org/view/474/
Containable)
then:
Hello,
I've got a weird problem. I'm trying to cache a action:
class UsersController extends AppController {
var $name = 'Users';
var $components = array('Email', 'Recaptcha', 'Country');
var $helpers = array('Cache');
var $cacheAction = array('xmlForSwift/' = '100');
The 100 is
I have the same problem.
I have activated caching in core.php, I have created the tmp/* folders
for cache, the folders are writtable, but for some reason, it just
won't work.
I have tested it on Cake 1.2.5 and 1.2.6
On Feb 11, 9:57 pm, Bennet Jeutter bennet.jeut...@gmail.com wrote:
Hello,
Guillermo
No, i'd like something like a pop-up warning window, which says: are
you sure?.
On 11 Feb., 16:57, Guillermo Mansilla mansil...@gmail.com wrote:
you already did with this line
$this-Session-setFlash('hardware unit with id: '.$id.' has been
deleted');
make sure you have set up the
Addition:
this works with the $hrml-link but not with $html-image. :-(
[code]
?php echo $html-link('Delete', array('action' = 'delete', 'id' =
$hardware_unit['HardwareUnit']['id']), null, 'Sind sie sicher?'); ?
[/code]
Check out the new CakePHP Questions site http://cakeqs.org and help others
I want to get value from a table to be populated in drop down select in a
form. Here's the table and the fields for example:
States
fields:id, name
In add function in StatesController, I add this piece of code (as I learnt
from the tutorial):
$state = $this-State-find('list');
Still wondering if anyone knows of any collections or uses any
different cake icons...
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
thanks. that worked.
On Feb 11, 7:38 pm, John Andersen j.andersen...@gmail.com wrote:
In your items controller, you have to set the layout, when you detect
that it is an AJAX request that you are processing.
See how to detect this
Simple include of RequestHandler component will do all automagically.
On Feb 12, 9:17 am, NickPick dickreu...@yahoo.com wrote:
thanks. that worked.
On Feb 11, 7:38 pm, John Andersen j.andersen...@gmail.com wrote:
In your items controller, you have to set the layout, when you detect
that
$states = $this-State-find('list', array ('fields' = array ('name',
'name')));
$form-select('state');
On Feb 12, 8:18 am, aveev nashrullah_a...@yahoo.com wrote:
I want to get value from a table to be populated in drop down select in a
form. Here's the table and the fields for example:
States
it works.. thanks dr loboto
Dr. Loboto wrote:
$states = $this-State-find('list', array ('fields' = array ('name',
'name')));
$form-select('state');
On Feb 12, 8:18 am, aveev nashrullah_a...@yahoo.com wrote:
I want to get value from a table to be populated in drop down select in a
I am using the security component from app_controller. In some
controllers I have this in my beforeFilter:
if (in_array($this-params['action'], $action)):
$this-Security-blackHoleCallback = 'forceSSL';
$this-Security-requireSecure();
else:
Sir/Madam
Here i would like to inform you that Orangesharkteam.com is
always sending some unwanted mails using my mail id without my knowledge. so
i kindly request you that if you receive those mails please ignore that.
sorry for this inconvenience.
--
Thanks with Regards,
all,
if you have ever needed a way to store arbitrary non-schema data for
your models, then i have made a solution for you. i'd like to
introduce my new plugin for cakephp 1.3+: Metadata Plugin. to learn
more about what it can do and how it works, take a look at
50 matches
Mail list logo