I’m not a huge fan of meetings, they seem to be a mostly social event, and I am after all very nerdy.
The main issue with them is the way they are approached, normally meetings start with a list of topics, vaguely related to the main issue at hand, which are then discussed in order. This seems to be a competitive sport for those who like to give their opinions on the topics, but don’t provide anything useful. Meetings end having had a great chat, but nothing has been learned, nothing will be improved.
This is why I would prefer to approach meetings with problems, rather than topics.
How can we fix xxxx? How can we improve the speed of xxxx?
Don’t discuss current methods, anyone involved should know those already, and if they don’t, then they don’t need to. Instead talk about the problems directly, and preferably the solutions to these problems.
The morale of my little story is, if you want to chat about something, go to the pub. I would rather be coding to solve problems, than chatting about what we already know about!
Can you make a sample for layout library -> http://daylerees.com/layout
How to add css? where I must put css name? how to implementation 3 template? how to send data to view?
Sorry, Im confused, but I so excited with your library. Thanks
The CI Learner — 78 days agoHi!
If you take a look at the page http://daylerees.com/layout , all of the information about using the layout can be found there, the section ‘Binding Binding Data to Views’ and ‘Adding Assets’ are specific to your questions
As for creating a 3 template, all templates are defined in an ordered array, as described in the section ‘Using Templates’.
Let me know if anything in the documentation is unclear, and thanks for using the library!
Dayle — 78 days agoFirst, you write
$this->layout->show(‘my_view’, array(‘dog’ = ‘Rover’));
must like this, right?
$this->layout->show(‘my_view’, array(‘dog’ => ‘Rover’));
I autoload your library and helper.
and success to write ‘Rover’ in my view, but how to write css and JS?
——————————-
My controller like this
——————————-
function layout()
{
$this->layout->css(‘assets/css/styles.css’);
$this->layout->template(‘my_template’)->show(‘my_view’, array(‘dog’ => ‘Rover’));
}
function layout2()
{
$this->layout->css(‘assets/css/styles2.css’);
$this->layout->show(‘my_view’, array(‘dog’ => ‘Rover’));
}
——————————-
Config Layout
——————————-
$layout['templates'] = array(
// default template
‘main’ => array(
‘-YIELD-’
),
‘my_template’ => array(
‘header’,
‘-YIELD-’,
‘footer’
)
);
—————-
my_view.php
—————
how to?
Ca n you make a sample, save in a zip file? :p
The CI Learner — 78 days agoHi again, the layout library is an built upon CodeIgniters $this->load->view() and data is passed to the view in the same way, so you could either get the CSS from the $assets array in the view, as stated in the docs :
To access either resource manually, simply access the $assets['css'] or $assets['js'] array within your views.
Or use the helper as documented in the ‘Layout Helper’ section to help with linking your stylesheets and javascripts.
Dayle — 78 days agoI have to put like this in my view
<link type="text/css" rel="stylesheet" href="”>
right?
I need to know how your library work ?
The CI Learner — 78 days agohow strong your librarty to change my CI standard code
The Layout Helper will generate these tags for you, or you can find all the items in the $assets array from within the view. This is all in the documentation.
Dayle — 78 days agosorry, like this
<link type="text/css" rel="stylesheet" href="
The CI Learner — 78 days ago