On Friday, 21 September 2012 00:48:49 UTC+2, cricket wrote:
>
> You can change $viewPath (relative to View dir). This is handy for
> AJAX, where you don't want the whole view returned.
>
> $this->viewPath = 'Elements/SomeDir';
> $this->render('form');
>
For the example, you could instead sim
What i'm talking about is $this->Form->input("you_name_it") will generate a
You Name It and one input.
There is no generic method so i can generate this "label text" based on the
column name (except of the FormHelper).
A helper to output this type of data would be nice (a "label" and the data
bas
How do you not provide the column name (or alias)?
On Thu, Sep 20, 2012 at 11:00 PM, Léo Willian Kölln wrote:
> Yes, the column name (label).
>
> And no, i don't need to provide it on the FormHelper (necessarily).
> I will use the method schema, but to implement a separate centralized label
> def
Yes, the column name (label).
And no, i don't need to provide it on the FormHelper (necessarily).
I will use the method schema, but to implement a separate centralized label
definition on the model (o thing that i think should already be on the
Framework (suggestion)).
Thanks guys.
Léo Willian K
You can change $viewPath (relative to View dir). This is handy for
AJAX, where you don't want the whole view returned.
$this->viewPath = 'Elements/SomeDir';
$this->render('form');
On Tue, Sep 18, 2012 at 1:31 PM, Serkan Sipahi wrote:
>
> Hi all,
>
> how can change the view folder inside a contro
Looks like a job for CakeResponse.
http://mark-story.com/posts/view/cakeresponse-in-cakephp-2-0
http://book.cakephp.org/2.0/en/controllers/request-response.html
On Wed, Sep 19, 2012 at 6:07 PM, Robert wrote:
> Hello All,
>
> I'm in the process of getting CORS (Cross-Origin Resource Sharing) for
What do you mean by "manually"? The point of writing it like that is
that it will display the new value if you change it in the DB.
Or are you referring to the column name? But you need to provide that
to FormHelper anyway.
I don't understand what problem you're trying to fix but there is the
Mod
If you define a $paginate var in AppController, it's going to be
overwritten in your other controllers. What you could do instead is
put it in AppController::beforeFilter() like so:
$this->paginate['limit'] = 15;
Just remember to have parent::beforeFilter() in your other
controllers' beforeFilter
Know that cake doesn't escape strings that are already escaped.
So if you inject '`got.dot`' somewhere appropriate (maybe just put it in
useTable) you can work around having a db with table names that are
problematic.
AD
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twit
dont use relative paths
use absolute ones to the domain
/css/img/style/...
etc
for development use the console script to create the script just as you
would with debug 0
Am Donnerstag, 20. September 2012 15:24:49 UTC+2 schrieb Glauco Custódio:
>
> Now it is working, I am getting tags like be
Hi,
I'm trying to set up CakePHP 2.2.2 on a hosted site where I have only one
mysql database which has is named like "test.se". Using this database name
results in a SQL error when Cake tries to run the command: " SQL Query: SHOW
TABLES FROM `test`.`se` "
I have found older posts saying that
use fpdf that is easy to use..
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
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.
T
Now it is working, I am getting tags like below in layout:
http://superabelha.com/code/asset_compress/assets/get/libs.js>">http://superabelha.com/code/asset_compress/assets/get/all.css>" />
My images are not being displayed cause in CSS I am using relative paths,
like:
background: url("../
not sure if you are allowed to add filters to the files.
I also defined the path to css in my config:
[css]
cachePath = WEBROOT/css/ccss/
filters[] = CssMinFilter
paths[] = WEBROOT/css/
[js-combined.js]
files[] = jquery/jquery/jquery.js
files[] = jquery/plugins/jquery.livequery.js
etc
Am Donne
It is defined as I posted above http://pastebin.com/1YxYfZQ9, I have this
snippet:
[js_libs.js]
files[] = jquery.js
;files[] = mootools.js
;files[] = class.js
filters[] = UglifyJs
On Thursday, September 20, 2012 9:01:48 AM UTC-3, euromark wrote:
>
> is your js_libs defined in your asset_compres
is your js_libs defined in your asset_compress.ini?
and if so, how?
Am Donnerstag, 20. September 2012 13:56:16 UTC+2 schrieb Glauco Custódio:
>
> I deleted error.log and refreshed my page and get this content:
>
> 2012-09-20 08:47:49 Error: [RuntimeException] Cannot create a script tag
> for a bu
I deleted error.log and refreshed my page and get this content:
2012-09-20 08:47:49 Error: [RuntimeException] Cannot create a script tag
for a build that does not exist.
#0 D:\my_project\code\app\View\Layouts\Default.ctp(38):
AssetCompressHelper->script('js_libs')
#1 D:\my_project\code\lib\Cake\
On Thu, Sep 20, 2012 at 1:41 PM, Prarinthon Ajinajarn
wrote:
> i have this before but dont understand iam very newly start in cake i read
> and dont know how to do plugin
Read http://book.cakephp.org/2.0/en/plugins.html
Tarique
--
=
h
i have this before but dont understand iam very newly start in cake i read
and dont know how to do plugin
On Thursday, September 20, 2012 1:36:30 PM UTC+7, Prarinthon Ajinajarn
wrote:
>
> i dont know what library or plugin can someone tell me thanks
--
Like Us on FacekBook https://www.facebook
On Thursday, September 20, 2012 1:36:30 PM UTC+7, Prarinthon Ajinajarn
wrote:
>
> i dont know what library or plugin can someone tell me thanks
--
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are
On Thu, Sep 20, 2012 at 12:06 PM, Prarinthon Ajinajarn
wrote:
> i dont know what library or plugin can someone tell me thanks
https://github.com/ceeram/CakePdf seems like a good start
Tarique
--
=
http://shdlr.com Conference schedulin
21 matches
Mail list logo