Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread Anis Ghabri
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

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread AD7six
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,

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread Anis Ghabri
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

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread AD7six
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

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread Anis Ghabri
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

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread Jeremy Burns | Class Outfit
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 ' .

Re: CakePHP and Twitter Bootstrap

2013-01-18 Thread Anis Ghabri
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

Sql Controller query

2013-01-18 Thread PlanoCoder
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

Re: Sql Controller query

2013-01-18 Thread 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 la...@lancebarron.com

Re: Sql Controller query

2013-01-18 Thread PlanoCoder
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

Re: Save Uploaded/Parsed File to Database Table

2013-01-18 Thread Karl Smith
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

Load different config file

2013-01-18 Thread MetZ
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 --

Re: Load different config file

2013-01-18 Thread Andras Kende
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

Re: Save Uploaded/Parsed File to Database Table

2013-01-18 Thread lowpass
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

Re: Save Uploaded/Parsed File to Database Table

2013-01-18 Thread Karl Smith
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

Model Validation Error Message

2013-01-18 Thread Michael Gaiser
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

Re: Pagination in Detail page like gmail

2013-01-18 Thread Luciano Bargmann
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