Differences

This shows you the differences between two versions of the page.

Link to this comparison view

load_splint_app [2019/05/31 17:25] (current)
Line 1: Line 1:
 +====== Load a Splint Application ======
  
 +Loading a splint application is as easy as can be. All you need to do is call the function below with a ''​Controller''​ ''​method''​ of your Code Igniter distribution.
 +
 +<code php>
 +$this->​load->​app("<​vendor>/<​application_name>"​);​
 +</​code>​
 +
 +The applications might need some parameters to initialize with, in such a case, you can do something like the one below.
 +
 +<code php>
 +$params = [
 +  "​param1"​ => "​arg1",​
 +  "​param2"​ => "​arg2",​
 +  "​paramN"​ => "​argN"​
 +];
 +$this->​load->​app("<​vendor>/<​application_name>",​ $params);
 +</​code>​
 +
 +Some Splint applications can be paged, this means that you can specify the application page to show or load.\\
 +
 +You might want to use this feature if you want your URLs to remain as though the application is running within your main Code Igniter distribution.\\
 +
 +Specifying application pages is usually done with the ''​app_page''​ parameter as part of the ''​$params''​ values passed to the ''​$this->​load->​app()''​ function. The developer of the application ​ can use an entirely different name for the parameter, ''​app_page''​ is just community standard.\\
 +
 +Handling the page logic is entirely up to the application developer.\\
 +
 +===== NEXT =====
 +
 +[[splint_object|Splint Object]] => \\
 +
 +===== PREVIOUS =====
 +
 +<= [[load_splint|Load Splint Libraries]]\\
 +
 +===== Other topics =====
 +
 +=> [[app_developer:​splint_app_paging|Splint Application Paging]]\\
 +=> [[app_developer:​start|Splint Application Development]]\\
 +=> [[app_developer:​develop_and_distribute_a_splint_application|Develop and Distribute your First Splint Application]]\\