Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Best way to implement dynamic site-wide menu?
Post: RE: Best way to implement dynamic site-wide menu?

Fair point. Horse for course I suppose. Thanks all.
12,618 Views
10 Replies
06-05-2018, 05:17 AM
blackbulldog
    Thread: Best way to implement dynamic site-wide menu?
Post: RE: Best way to implement dynamic site-wide menu?

InsiteFX Wrote: (06-04-2018, 09:15 AM) -- No assign it to the $data['nav'] then use a foreach loop to echo it all out. -- That would mean passing the $data['nav'] into the template view and changin...
12,618 Views
10 Replies
06-04-2018, 09:31 AM
blackbulldog
    Thread: Best way to implement dynamic site-wide menu?
Post: RE: Best way to implement dynamic site-wide menu?

InsiteFX Wrote: (06-04-2018, 06:37 AM) -- Just create nav.php view and have your menu code in it. header nav body footer -- Sorry, do you mean that I should try to access the model that retur...
12,618 Views
10 Replies
06-04-2018, 07:09 AM
blackbulldog
    Thread: Best way to implement dynamic site-wide menu?
Post: RE: Best way to implement dynamic site-wide menu?

Thanks ... ... So, taking your idea, I could create a Mycontroller, create the html in the construct function (thereby only running it once) and then rather than using the code I have in my control...
12,618 Views
10 Replies
06-04-2018, 04:51 AM
blackbulldog
    Thread: Best way to implement dynamic site-wide menu?
Post: RE: Best way to implement dynamic site-wide menu?

InsiteFX Wrote: (06-04-2018, 03:54 AM) -- @Avenir has some very good tutorials, I would look through his whole web site. Revisiting the multilevel menu in PHP with some additional code (as in… Boots...
12,618 Views
10 Replies
06-04-2018, 04:14 AM
blackbulldog
    Thread: Best way to implement dynamic site-wide menu?
Post: Best way to implement dynamic site-wide menu?

Hi, Currently got a template to handle views, looks like this: Code: -- -- the view 'v_nav' is simply hard-coded html of all the menu options. So I'm...
12,618 Views
10 Replies
06-04-2018, 02:20 AM
blackbulldog
    Thread: Problem with bootstrap - need help to integrate
Post: RE: Problem with bootstrap - need help to integrat...

Hi Scott, That does help. I have a few strands of hair left, your advice means I can hang on to them - for a while anyway. Thanks a lot.
4,442 Views
3 Replies
12-07-2016, 01:47 PM
blackbulldog
    Thread: Problem with bootstrap - need help to integrate
Post: Problem with bootstrap - need help to integrate

Hi, I've done my usual ... that is not set up a new CI project for over a year and now I've forgotten how to integrate bootstrap into it. I've got a folder under 'application' called assets. ...
4,442 Views
3 Replies
12-07-2016, 05:20 AM
blackbulldog
    Thread: Integrating twitterOauth?
Post: RE: Integrating twitterOauth?

Tpojka Wrote: (04-05-2016, 04:43 AM) -- If you are using composer, with default CI3 settings there will be created additional vendor directory in root location (that's where you need to put composer...
10,956 Views
8 Replies
04-05-2016, 05:10 AM
blackbulldog
    Thread: Integrating twitterOauth?
Post: RE: Integrating twitterOauth?

albertleao Wrote: (04-04-2016, 04:37 PM) -- If you're using composer, copy and pasting the directions on the landing page of twitteroauth.com will make it work. Just make sure you're using the correc...
10,956 Views
8 Replies
04-05-2016, 01:22 AM
blackbulldog
    Thread: Integrating twitterOauth?
Post: RE: Integrating twitterOauth?

could do I suppose. would that make it easier?
10,956 Views
8 Replies
04-04-2016, 09:29 AM
blackbulldog
    Thread: Integrating twitterOauth?
Post: Integrating twitterOauth?

Hi, Been away for a while so a bit rusty (rustier). Looking to integrate the twitter oauth app as found at twitterouath.com and am not sure how to do it as it' not just one single php file. Anyo...
10,956 Views
8 Replies
04-04-2016, 08:42 AM
blackbulldog
    Thread: Help with My_Model and extending it?
Post: RE: Help with My_Model and extending it?

I was thinking about both ... I'll have to have a look and see which fits best. thanks..
10,174 Views
7 Replies
04-23-2015, 04:52 AM
blackbulldog
    Thread: Help with My_Model and extending it?
Post: RE: Help with My_Model and extending it?

Nice answer, I like the honesty :) Just thinking though ... to add the code into MY_Model constructor would automatically implement it for every model that extends it, wouldn't it? ... let's ...
10,174 Views
7 Replies
04-23-2015, 04:33 AM
blackbulldog
    Thread: Help with My_Model and extending it?
Post: RE: Help with My_Model and extending it?

Thanks for replying. Your answer makes sense to me ... what is the main difference between your MY_Model and JR's version?
10,174 Views
7 Replies
04-23-2015, 03:49 AM
blackbulldog
    Thread: Help with My_Model and extending it?
Post: Help with My_Model and extending it?

Hi, Been playing around with Jamie rumbelow's My_Model and find it really useful so far. Just working with the 'observers' before_create and before_update. I've only been testing these observers...
10,174 Views
7 Replies
04-22-2015, 05:18 AM
blackbulldog
    Thread: AJAX problem? - refreshed url show post values from AJAX call?
Post: RE: AJAX problem? - refreshed url show post values...

mwhitney Wrote: (03-26-2015, 11:08 AM) -- Have you tried leaving out the second argument in redirect(), or changing it to 'location'? -- Yes, tried both but they get the same result.
6,261 Views
0 Replies
03-26-2015, 12:05 PM
blackbulldog
    Thread: AJAX problem? - refreshed url show post values from AJAX call?
Post: AJAX problem? - refreshed url show post values fro...

Hi, I'm using a bootstrap modal form (displayed when user clicks a button)  to allow the user to enter some data then submit it via an ajax call to a CI controller. Then I want the CI controller th...
6,261 Views
0 Replies
03-26-2015, 05:34 AM
blackbulldog
    Thread: Need help with data arrays
Post: RE: Need help with data arrays

Quote: -- From your two subqueries, I think you only need the SUM() fields, a.total_absence and s.total_sickness. -- I've tried leaving out the events.eventid in the subquery select but that th...
16,930 Views
0 Replies
03-17-2015, 01:57 AM
blackbulldog
    Thread: Need help with data arrays
Post: RE: Need help with data arrays

RobertSF Wrote: (03-16-2015, 12:34 PM) -- blackbulldog Wrote: (03-16-2015, 04:46 AM) -- Sorry to be a pain . . .  If the children table had a toytype filed then I need to separately SUM children....
16,930 Views
0 Replies
03-16-2015, 01:27 PM
blackbulldog

Theme © iAndrew 2016 - Forum software by © MyBB