I think your biggest issue is to make paginator helper generate links to
your details pages, correct?
I dont think you can do it with regular paginator, so in your place, I
would extend it, create a custom query to return the paginator data and
count and then create the links pointing to your c
So because of how I am dynamically creating my form inputs/save data, the
standard rule validation msg isnt being displayed on the input when the
save rule returns false. How do I manually trigger the msg to appear on a
given input? Thanks
~Michael
--
Like Us on FaceBook https://www.facebook.co
Yea I know.Im somewhat new to this.
On Fri, Jan 18, 2013 at 1:01 PM, lowpass wrote:
> Technically, yes. But without knowing the details of what you're
> doing, take that with a grain of salt.
>
> You might want to specify the model, for one thing.
>
> On Fri, Jan 18, 2013 at 10:02 AM, Karl S
Technically, yes. But without knowing the details of what you're
doing, take that with a grain of salt.
You might want to specify the model, for one thing.
On Fri, Jan 18, 2013 at 10:02 AM, Karl Smith wrote:
> Is it possible to pass the id to my action like this?
>
> UiForm->input('id', array('t
I guess you could do something like:
bootstrap.php
$tld = strrchr($_SERVER['SERVER_NAME'], '.');
Configure::load('config' . $tld);
or with parse_url or regex.
Andras Kende
http://www.kende.com
On Jan 18, 2013, at 7:08 AM, MetZ wrote:
> Hi..
>
> I am wondering the best appro
Hi..
I am wondering the best approach to load different config files according
to TLD?
domain.TLD1
domain.TLD2
domain.TLD3
config/config_TLD1.php
config/config_TLD2.php
config/config_TLD3.php
Today I am using only the config_TLD1.php (loaded in bootstrap).
Any suggestions?
Thanks!
-Tom
--
Is it possible to pass the id to my action like this?
UiForm->input('id', array('type' => 'hidden')); ?>
On Thu, Jan 17, 2013 at 5:56 PM, lowpass wrote:
> On Wed, Jan 16, 2013 at 5:37 PM, Karl Smith wrote:
> >
> >
> >>
> >> > Now as far as my view goes..do I need to add an input for user_id
Thanks... That worked perfectly.
On Friday, January 18, 2013 7:20:31 AM UTC-6, Jeremy Burns wrote:
>
> http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-field
>
> $id = $this->User->field(
> 'id',
> array(
> 'username' => $sponID
> )
> );
>
> Jeremy Burns
> Class Outfit
>
>
http://book.cakephp.org/2.0/en/models/retrieving-your-data.html#model-field
$id = $this->User->field(
'id',
array(
'username' => $sponID
)
);
Jeremy Burns
Class Outfit
http://www.classoutfit.com
On 18 Jan 2013, at 13:15:54, PlanoCoder wrote:
> Good morn
Good morning all. I need to make this sql query in my controller. "SELECT
id FROM users WHERE username = $sponID". How do i need to write this in
the UsersController?
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this
Good. But to me I'm creating a CMS so I'm trying to keep the markup as much
compatible as possible with CakePHP's markup. to make sure that CakePHP
templates will be used as it is with my CMS. Anyway I'm still new to
cakephp and I'm trying to find my way.
Thanks guys for great ideas and suggest
Make an element: /View/Elements/flash/error.ctp
×
' . $message; ?>
>From the controller:
$this->Session->setFlash(
'Error message goes here',
'flash/error',
array('heading' => 'Heading goes here.')
);
Jeremy Burns
Class Outfi
Well, TWB is a css based framework. Till now no problem faced. maybe I
don't it works well for me just I have to figure out how cake php make html
thing for example flashmessage looks like this ##Added##
so I need to make it styles with TWB alert like this
--
$("di
which obviously leads to the equivalent of
http://www.bluerobot.com/web/css/fouc.asp/
Especially if you put it in a document ready handler. You can do that -
it's just not the best idea; and won't help if the markup is not the same
structure that bootstrap expects.
AD
On Friday, 18 January 20
This is why I said :"One good Idea create a js script that adds the
necessary twitter bootstrap classes the view control like tables flash
messages and so on."
run_at_page_load.js
-
$(document).ready(function($){
$("table").addClass("table tab
On Friday, 18 January 2013 09:19:12 UTC+1, Anis Ghabri wrote:
>
> Hi,
> I'm also new to cakephp
> It's easy to make twitter bootstrap work for you there's no need for
> plugin just add the css, img and js files to your webroot.
>
Except if you do that, various helpers (of most relevance html,
Hi,
I'm also new to cakephp
It's easy to make twitter bootstrap work for you there's no need for plugin
just add the css, img and js files to your webroot. take an example
template from the TBootstrap
http://twitter.github.com/bootstrap/getting-started.html#examples website
and edit it to be co
17 matches
Mail list logo