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
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,
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
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
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 ##div id=flashMessage
class=messageAdded/div##
so I need to make it styles with TWB alert like this
Make an element: /View/Elements/flash/error.ctp
div class=alert alert-error
a class=close data-dismiss=alert href=#times;/a
?php if (isset($heading)) { ?
h4 class=alert-heading?php echo $heading; ?/h4
?php }
echo 'i class=icon-thumbs-down/i ' .
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
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
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 la...@lancebarron.com
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
Is it possible to pass the id to my action like this?
?php echo $this-UiForm-input('id', array('type' = 'hidden')); ?
On Thu, Jan 17, 2013 at 5:56 PM, lowpass zijn.digi...@gmail.com wrote:
On Wed, Jan 16, 2013 at 5:37 PM, Karl Smith barnun...@hotmail.com wrote:
Now as far as my
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
--
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 met...@gmail.com wrote:
Hi..
I am wondering
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 barnun...@gmail.com wrote:
Is it possible to pass the id to my action like this?
?php echo
Yea I know.Im somewhat new to this.
On Fri, Jan 18, 2013 at 1:01 PM, lowpass zijn.digi...@gmail.com 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
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
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
17 matches
Mail list logo